SubtitleDownloader (4 Viewers)

seco

Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    subscene does not work anymore.

    Subtitle download failed! Downloading returned unexpected result!
    at SubtitleDownloader.Implementations.Subscene.SubsceneDownloader.SaveSubtitle(Subtitle subtitle)

    I cannot figure out how to create a new ticket on your assembla space, so I post it here instead

    Hi,

    Please follow bug reporting guidelines. Post all logs & steps to reproduce.

    I would like to follow your guidelines, but I cannot find them anywhere. Can you point me in the right direction?

    Thanks!

    Sorry I didn't see that you are new in forums.

    This guide is for MediaPortal bugs but in general should work for plugins as well (just post to this thread)

    MediaPortal Forum - Announcements in Forum : SubCentral
     

    Spas

    Portal Member
    December 21, 2011
    10
    6
    Hi,

    Please follow bug reporting guidelines. Post all logs & steps to reproduce.

    I would like to follow your guidelines, but I cannot find them anywhere. Can you point me in the right direction?

    Thanks!

    Sorry I didn't see that you are new in forums.

    This guide is for MediaPortal bugs but in general should work for plugins as well (just post to this thread)

    MediaPortal Forum - Announcements in Forum : SubCentral

    Ah ok - I should have told you that I am not using SubtitleDownloader through MediaPortal. I am using it from my own application. To reproduce, just try to download any subtitle from subscene. I get this exception every time. Maybe they blocked me? (if you don't have any problems)
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    Show me the code that you are using, my unit tests are working fine for Subscene and also SubCentral works fine.
     

    Spas

    Portal Member
    December 21, 2011
    10
    6
    Show me the code that you are using, my unit tests are working fine for Subscene and also SubCentral works fine.

    It is quite simple:

    Code:
                    var movieName = "some movie";
                    var subSceneDownloader = new SubsceneDownloader();
    
                    var searchQuery = new SearchQuery(movieName)
                                          {
                                              LanguageCodes = new[]
                                                                  {
                                                                      Languages.GetLanguageCode("English"),
                                                                      Languages.GetLanguageCode("Danish")
                                                                  }
                                          };
    
                    var searchSubtitles =
                        subSceneDownloader.SearchSubtitles(searchQuery).Where(
                            s => s.FileName.ToLower().Contains(movieName.ToLower())).ToList();
    
                    if (searchSubtitles.Count() > 0)
                    {
                        Subtitle subtitle = searchSubtitles.First();
                        FileInfo subtitleFile = subSceneDownloader.SaveSubtitle(subtitle).First();
                    }
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    Show me the code that you are using, my unit tests are working fine for Subscene and also SubCentral works fine.

    It is quite simple:

    Code:
                    var movieName = "some movie";
                    var subSceneDownloader = new SubsceneDownloader();
    
                    var searchQuery = new SearchQuery(movieName)
                                          {
                                              LanguageCodes = new[]
                                                                  {
                                                                      Languages.GetLanguageCode("English"),
                                                                      Languages.GetLanguageCode("Danish")
                                                                  }
                                          };
    
                    var searchSubtitles =
                        subSceneDownloader.SearchSubtitles(searchQuery).Where(
                            s => s.FileName.ToLower().Contains(movieName.ToLower())).ToList();
    
                    if (searchSubtitles.Count() > 0)
                    {
                        Subtitle subtitle = searchSubtitles.First();
                        FileInfo subtitleFile = subSceneDownloader.SaveSubtitle(subtitle).First();
                    }


    I don't see anything wrong with the code and it also works here with var movieName = "batman";

    :confused:
     

    Spas

    Portal Member
    December 21, 2011
    10
    6
    Show me the code that you are using, my unit tests are working fine for Subscene and also SubCentral works fine.

    It is quite simple:

    Code:
                    var movieName = "some movie";
                    var subSceneDownloader = new SubsceneDownloader();
    
                    var searchQuery = new SearchQuery(movieName)
                                          {
                                              LanguageCodes = new[]
                                                                  {
                                                                      Languages.GetLanguageCode("English"),
                                                                      Languages.GetLanguageCode("Danish")
                                                                  }
                                          };
    
                    var searchSubtitles =
                        subSceneDownloader.SearchSubtitles(searchQuery).Where(
                            s => s.FileName.ToLower().Contains(movieName.ToLower())).ToList();
    
                    if (searchSubtitles.Count() > 0)
                    {
                        Subtitle subtitle = searchSubtitles.First();
                        FileInfo subtitleFile = subSceneDownloader.SaveSubtitle(subtitle).First();
                    }


    I don't see anything wrong with the code and it also works here with var movieName = "batman";

    :confused:

    Hi mate - I see it actually started working again - for me as well. So it was probably subscene that had some problems for a few days. Sorry for taking your time.
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    I think Subscene has some kind of download limit (per day perhaps) so if you ran your code multiple times it is possible that the limit was exceeded.
     

    barneh

    MP Donator
  • Premium Supporter
  • February 4, 2010
    245
    54
    Malmö
    Home Country
    Sweden Sweden
    Re: SubtitleDownloader 1.8

    hello

    i have a site with swedish subtitles, can i add my site to this plugin?
    if yes, do you want me to build a page that send the output you need for this plugin?

    s4u.se - Undertexter snabbt och enkelt about 19k+ swedish subtitles to movies and series

    Hi,

    Sure. Basically what I need is an API to search and download subtitles. For example, something that SubtitleSource has ("XML/RSS API"):

    Heroes

    Search results should include the download URL too.

    Web Service, XML-RPC based or another API is ok too but probably more work to implement.

    Hi first of all thanx for a great plugin!

    A friend of mine use XBMC and got a subtitle downloader that search from the Swedish sites Undertexter.se - Sveriges största sida för Svenska och Engelska undertexter till såväl nya som gamla filmer och serier and SweSUB.nu - För bättre texter. I have looked for a API at these sites, but I can't find any thing about it...
    Is this plugin/.dll similar to one that are used on XBMC?
     

    Users who are viewing this thread

    Top Bottom