SubtitleDownloader (6 Viewers)

omerfarukozer

Portal Member
April 4, 2010
32
12
Home Country
Turkey Turkey
Actually I had programmed as you suggested at first but then I realized that this portal removes individual episode subtitles after the season is over and packages whole season in a single RAR. In these cases if I parse the download page I miss some relevant information. For example I can extract media but not the release group. And there are some packages that include multiple subs for the same episode from different release groups etc. Therefore I changed the code to investigate what is inside the archive.

Anyway the bottom line is if I do as you suggest it will be faster with missing information. Right now it is slower but gives lots of info and options.

I can code to do both way and let the user change the behaviour from a config xml. If there were a config UI for downloader implementations in subcentral (or other users of the library) that would be great.

I'l try SharpCompress library.

Thanks
 

seco

Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    Actually I had programmed as you suggested at first but then I realized that this portal removes individual episode subtitles after the season is over and packages whole season in a single RAR. In these cases if I parse the download page I miss some relevant information. For example I can extract media but not the release group. And there are some packages that include multiple subs for the same episode from different release groups etc. Therefore I changed the code to investigate what is inside the archive.

    Anyway the bottom line is if I do as you suggest it will be faster with missing information. Right now it is slower but gives lots of info and options.

    I can code to do both way and let the user change the behaviour from a config xml. If there were a config UI for downloader implementations in subcentral (or other users of the library) that would be great.

    I'l try SharpCompress library.

    Thanks

    1. As long as you download one RAR per search I think it should be quite OK since the user probably ends up downloading it anyway. Is there any cases you are downloading more than one archive file?

    2. Some 3rd party downloaders have (XML) config file they use but currently there is no common format for those files or UI implemented.

    3. Please note that SharpCompress is already included in SubtitleDownloader.dll so you don't actually need to download or anything. However I will try to fix ExtractFilesFromZipOrRarFile method in the next version (3.0.8)
     
    Last edited:

    omerfarukozer

    Portal Member
    April 4, 2010
    32
    12
    Home Country
    Turkey Turkey
    1. As long as you download one RAR per search I think it should be quite OK since the user probably ends up downloading it anyway. Is there any cases you are downloading more than one archive file?

    Yes. Let's say there are 4 season packages 2 of them match. Then I download those two packages on see what is inside.

    2. Some 3rd party downloaders have (XML) config file they use but currently there is no common format for those files or UI implemented.

    I hope to see this functionality. Maybe if you define a skeleton XML other developers could extend it. That way subcentral could use those XMLs and show a config user interface.

    3. Please note that SharpCompress is already included in SubtitleDownloader.dll so you don't actually need to download or anything.

    OK.
     
    Last edited:

    trudslev

    Portal Member
    July 29, 2008
    9
    5
    Denmark
    Home Country
    Denmark Denmark
    Seco, not sure if your thread here is appropriate for this post, if not let me know and I'll delete it again.

    While I like being able to download subtitles for my TV shows on the fly using SubCentral, I like it even more if they are already ready for me when I want to watch, so I created a small program that uses this DLL for automatic download of subtitles for your shows. It can easily be set up to run once in a while using "Scheduled Tasks" under Windows or cron under Linux. Note that under Linux it requires you to get Mono (http://www.go-mono.com/mono-downloads/download.html).

    The program is opensource and can be found here: https://github.com/trudslev/srtDownload
     
    Last edited:

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    Seco, not sure if your thread here is appropriate for this post, if not let me know and I'll delete it again.

    While I like being able to download subtitles for my TV shows on the fly using SubCentral, I like it even more if they are already ready for me when I want to watch, so I created a small program that uses this DLL for automatic download of subtitles for your shows. I can easily be set up to run once in a while using "Scheduled Tasks" under Windows or cron under Linux. Note that under Linux it requires you to get Mono (http://www.go-mono.com/mono-downloads/download.html).

    The program is opensource and can be found here: https://github.com/trudslev/srtDownload

    No problem, nice to see that you have found use for SubtitleDownloader.

    Automatic downloading has been on the SubCentral roadmap but back in the days when I was doing proof-of-concept I found out that current SubCentral code would need a lot of refactoring to make automatic downloading properly.
     
    Last edited:

    Spas

    Portal Member
    December 21, 2011
    10
    6
    Are there currently problems downloading from Subscene?
    I get an exception saying "Subtitle download failed! Downloading returned unexpected result!"
    at SubtitleDownloader.Implementations.Subscene.SubsceneDownloader.SaveSubtitle(Subtitle subtitle)

    I am not sure what that means?

    I am using the DLL in my own app - not using MediaPortal.

    Any help is much apreciated
     

    Users who are viewing this thread

    Top Bottom