3 ms·
Most of the subreddit/show pairs came from here: http://tv-subreddits.wikidot.com/ http://tv-subreddits.wikidot.com/ . Sourcing this data is the tricky part: I
by hoten 5y ago
Most of the subreddit/show pairs came from here: http://tv-subreddits.wikidot.com/ http://tv-subreddits.wikidot.com/ . Sourcing this data is the tricky part: I can't find any other sources. Idea I just had: maybe searching /r/television posts for "/r/..." links would be a good lead?
> Are you still using regex?
Yup, just in a much better way. I won't bother explaining how it was before, but now: I have a collection of regexes that try to match a "season" and "episode" at the same time. If that fails, I fall back to matching for them separately. If "episode" is not found, I ignore the thread as a possibly related to a specific episode.
If I have further issues with the parsing, I'll consider a whole new approach like you've recommended. But I don't have any experience with that stuff so my first thought is that it'd be overkill.