2010-09-27, 22:27
Hi everyone,
First off thanks for this addon - I've been waiting for something like this to streamline my HTPC setup for ages. I'm not using Dharma builds yet (I'm still with OpenSubtitles_OSD) but once a stable release is out I'm sure to upgrade.
I saw requests for other subtitle sites (for all you people asking for subscene - looking at the repository someone already worked that in for you ) and I understand your reluctance Amet towards working on adding everyone's favourite site, espacially while still working on the addon itself. However, since all the sites currently there have few Hebrew subtitles and what they do have was uploaded very late I figured I'd have a go at adding some sites (sratim.co.il which xbmc already supports for scraping, torec.net) myself.
I can read the python scripts just fine (I figured which methods in service.py I must implement and which ones are just private ones used for parsing etc') however I'm having problems with the HTML/webpage part of it all.
It seems one site (sratim) has the search pointing to the show's webpage, and I have to browse inside it using ASP (damn "web 2.0") to the specific season, episode and language to get a download link, while on the other one (torec) it's easier to get to the specific episode page but you need to select the specific release from an option box and run some javascript method they wrote that pops up a commercial and timer before you can download...
Is anyone up to helping me get started? I'd like to contribute (while improving XBMC for myself the way I need - OSS theory in practice ) but I'm really rusty on my web technologies...
Thanks.
Edit: I tried having a look at the scraper for sratim, I see it uses regex's to parse the data but it doesn't look like it can handle episode information, only movie/show. It did however show me that the search parameter for the asp script is "Keyword", i.e: http://www.sratim.co.il/movies/search.as...word=<show name>. I wonder if there's a way to make it search for a specific episode, maybe someone who worked on the scraper can help?
And sorry for the long post.
First off thanks for this addon - I've been waiting for something like this to streamline my HTPC setup for ages. I'm not using Dharma builds yet (I'm still with OpenSubtitles_OSD) but once a stable release is out I'm sure to upgrade.
I saw requests for other subtitle sites (for all you people asking for subscene - looking at the repository someone already worked that in for you ) and I understand your reluctance Amet towards working on adding everyone's favourite site, espacially while still working on the addon itself. However, since all the sites currently there have few Hebrew subtitles and what they do have was uploaded very late I figured I'd have a go at adding some sites (sratim.co.il which xbmc already supports for scraping, torec.net) myself.
I can read the python scripts just fine (I figured which methods in service.py I must implement and which ones are just private ones used for parsing etc') however I'm having problems with the HTML/webpage part of it all.
It seems one site (sratim) has the search pointing to the show's webpage, and I have to browse inside it using ASP (damn "web 2.0") to the specific season, episode and language to get a download link, while on the other one (torec) it's easier to get to the specific episode page but you need to select the specific release from an option box and run some javascript method they wrote that pops up a commercial and timer before you can download...
Is anyone up to helping me get started? I'd like to contribute (while improving XBMC for myself the way I need - OSS theory in practice ) but I'm really rusty on my web technologies...
Thanks.
Edit: I tried having a look at the scraper for sratim, I see it uses regex's to parse the data but it doesn't look like it can handle episode information, only movie/show. It did however show me that the search parameter for the asp script is "Keyword", i.e: http://www.sratim.co.il/movies/search.as...word=<show name>. I wonder if there's a way to make it search for a specific episode, maybe someone who worked on the scraper can help?
And sorry for the long post.