Need help with tvsubtitles.net (1 Viewer)

Mr.Heckles

Portal Member
August 18, 2009
20
0
Three days ago everything was fine. I could retrieve subtitles with no problems whatsoever. Now something happened. I can choose tvsubtitles, I can see "retrive subtitles" window and I can press this button. I even can choose what kind of subtitles to download. Then I press "download" and here you are: "no subtitles found". SubSeries works so does Remository. Is something wrong with tvsubtitles.net ? And is there any way to fix it? Please...
 

Zteven

New Member
September 4, 2009
1
0
I tried to find out what is going wrong with Fiddler (a web debugger). Apparently tvsubtitles.net doesn't like deep links. If you follow the links at the website you get to a page with a big green button named 'download'. If you press it, it starts the download of a zip file. If you paste the url of the button in the addressbar however, it redirects you to Mobile manuals - Mobile-manual.com, a site with only advertisements. It is a mystery to me how the site can distinguish between a manually clicked link and the link requested directly. The effect however is that mp-tvseries tries the deep link, gets to the bogus site and concludes that nothing useful was downloaded.

Bye,
Steven
 

moryoav

Portal Pro
December 2, 2008
236
86
Home Country
Israel Israel
Same problem here. Can this be solved? Maybe switch to a different subtitle website?

I tried to find out what is going wrong with Fiddler (a web debugger). Apparently tvsubtitles.net doesn't like deep links. If you follow the links at the website you get to a page with a big green button named 'download'. If you press it, it starts the download of a zip file. If you paste the url of the button in the addressbar however, it redirects you to Mobile manuals - Mobile-manual.com, a site with only advertisements. It is a mystery to me how the site can distinguish between a manually clicked link and the link requested directly. The effect however is that mp-tvseries tries the deep link, gets to the bogus site and concludes that nothing useful was downloaded.

Bye,
Steven
 

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    Here is the code: tvsubtitles.cs - mptvseries - Project Hosting on Google Code

    If you know what to do to fix it, I will make the changes. I personally dont use subtitles nor wrote that bit of code but am happy to integrate any patch and give it a a test before making a new release.

    I have also asked zeflash the original creator of that class to take a look if he has a chance.
     

    frenzy

    Portal Pro
    April 29, 2008
    228
    10
    Home Country
    France France
    Copying/translating the answer I got in another forum from parsifal

    According to the implementation of the method WebClient.DownloadFile that is called in the code, 2 definitions are accepted, address and filename. You need something more low-level, that allows for a kind of spoofing: That is, to adjust the field "referrer" of HTTP GET request that is to be sent. For example [1].

    If it helps and someone knows what to do with it:oops:, go ahead:)
     

    MageMinds

    Portal Pro
    January 29, 2007
    99
    5
    Home Country
    Canada Canada
    Here is the code that should work... Only one line to add I made it bold and left some before and after code for you to see where to put it. I'm not 100% sure that will work, but it's a start. We need to set the Referer and this is exactly what this does. I did not check all the code, I assume the sDownloadUrl is equal to something like "http://tvsubtitles.net/subtitle-82387.html" at the moment we do the Headers.Add

    Code:
    265              Match selected = Selected.m_Tag as Match;
    266              String sDownloadUrl = m_sBaseUrl + selected.Groups[1].Value;
    [b]add              client.Headers.Add("Referer", sDownloadUrl);[/b]
    267              sDownloadUrl = sDownloadUrl.Replace("/subtitle", "/download");

    I use subtitles ALL the time and this was a shock to me when it stoped working. I'm glad I could help if it works...

    MageMinds
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    Was an easy fix, thanks for the investigation guys. We just need to add the referer.
     

    moryoav

    Portal Pro
    December 2, 2008
    236
    86
    Home Country
    Israel Israel
    Beta version coming?

    Could you include this fix in some beta version for us to test? I volunteer to be a Beta tester...
     

    Users who are viewing this thread

    Top Bottom