themaPoster
http://poster.themasoftware.com/forum/

Make adding topics easier - support more patterns.
http://poster.themasoftware.com/forum/viewtopic.php?f=3&t=8205
Page 1 of 1

Author:  Wurstmu [ November 9th, 2015, 5:25 pm ]
Post subject:  Make adding topics easier - support more patterns.

Hello,

one of the main reasons I still do a lot of manual posting is the lack of searching for existing threads for a release (there is already a ---> suggestion thread for this so I won't talk about it here) and second that adding topics is quite hard.

Example: [self-censored].com/thread/38-supernatural-s05-german-dl-ws-bdrip-xvid-gdr-4182181/

Adding this easy looking one into the ID extractor in TP fails with the message "Didn't found the ID in the URL". For me it almost never works, that's really frustrating.

Suggestion: Let the user define regex for TID extraction per site (the URLs look all different probably because of different SEO tuning strategies so it must be site dependent) so the success rate for TID extraction raises.

I'd be really thankful for for such a comparingly smaller solution until you start implementing a search panel. right now I search in browser, copy & paste the URL, get an error and have to extract the pure TID with other tools and paste again. That could be a lot easier :-)

And please fix the typo, it should be "Didn't find the ID in the URL". ;-)

Wurstmu

EDIT: This could also improve "fetch topics" in Thema Manager as well.

Author:  Freddy [ November 9th, 2015, 5:32 pm ]
Post subject:  Re: Make adding topics easier

At the moment it only looks for t=ID, showtopic=ID , tid=ID , Thread=ID, etc.

I'm planning to improve ID extraction from URL.

Probably as much as even visiting the URL to see if the ID can be found in HTML source if it doesn't appear in URL (some forums don't have the ID in main topic URL).

Author:  Freddy [ November 14th, 2015, 2:51 am ]
Post subject:  Re: Make adding topics easier.

Added some more supported patterns (basically which you mentioned):
* if ends with -ID/
* if ends with .ID/
* if has, last of /ID-

Also made so that it would parse the ID from URL when focus is lost from the field, so you can click on "Title" field or needed group without clicking on the button to parse URL.

Also fixed the typo.

For 2.40 final.

If there are some other patterns which are not added just let me know.

Author:  Wurstmu [ November 14th, 2015, 10:25 am ]
Post subject:  Re: Make adding topics easier - support more patterns.

Thanks a lot! The additional improvement is a very good idea also, looking forward to get 2.40.

Will you add those patterns also to TM when you start working on it again?

Wurstmu

Author:  Freddy [ November 14th, 2015, 10:41 am ]
Post subject:  Re: Make adding topics easier - support more patterns.

Yes...

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/