Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
scorpio
Posts: 2
Joined: Tue Sep 30, 2014 5:48 pm

'ZipDownloadLink' does not contain Link to a Zipfile

Tue Sep 30, 2014 6:05 pm

Hi there

I'm new here. Today I ran into this problem.
I search for subtitles using a Perlscript. The Search runs fine and returns the expected result.

Code: Select all

$VAR1 = [ [ { 'SubFeatured' => '0', 'QueryNumber' => '0', 'SubHearingImpaired' => '0', 'SubAuthorComment' => undef, 'SubDownloadLink' => 'http://dl.opensubtitles.org/en/download/filead/src-api/vrf-994182885a/1953744885.gz', 'MovieNameEng' => undef, 'SubDownloadsCnt' => '2432', 'MovieName' => '"The Neighbors" September Fools', 'LanguageName' => 'English', 'MovieFPS' => '0.000', 'QueryParameters' => { 'query' => 'The Neighbors', 'episode' => '02', 'sublanguageid' => 'eng', 'season' => '02' }, 'SeriesIMDBParent' => '2182229', 'MovieHash' => '0', 'SeriesEpisode' => '2', 'UserNickName' => undef, 'MovieYear' => '2013', 'SubSize' => '38249', 'MovieKind' => 'episode', 'IDSubMovieFile' => '0', 'ZipDownloadLink' => 'http://dl.opensubtitles.org/en/download/subad/src-api/vrf-c5658b562f/5203391', 'SubBad' => '0', 'ISO639' => 'en', 'IDSubtitle' => '5203391', 'MovieReleaseName' => ' the.neighbors.2012.202.hdtv-lol', 'MatchedBy' => 'fulltext', 'MovieTimeMS' => '0', 'UserID' => '0', 'SubFormat' => 'srt', 'MovieByteSize' => '0', 'SubRating' => '0.0', 'SubComments' => '0', 'SubActualCD' => '1', 'SubHash' => 'f7ab674fd4f0fa3e2a402fd52d39fd91', 'UserRank' => undef, 'IDSubtitleFile' => '1953744885', 'SubSumCD' => '1', 'SubFileName' => 'the.neighbors.2012.202.hdtv-lol-eng.srt', 'SubAddDate' => '2013-10-01 23:00:36', 'IDMovieImdb' => '3198742', 'SubtitlesLink' => 'http://www.opensubtitles.org/en/subtitles/5203391/the-neighbors-september-fools-en', 'IDMovie' => '159262', 'SeriesSeason' => '2', 'SubHD' => '1', 'SubLanguageID' => 'eng', 'MovieImdbRating' => '7.7' } ] ];
Then I download the value of ZipDownloadLink ('ZipDownloadLink' => 'http://dl.opensubtitles.org/en/download ... 2f/5203391'). The Problem is, this is not a Zipfile, but a Textfile with this content:

Code: Select all

cat 5203391 Array ( [IDSubtitle] => 5203391 [MovieFPS] => 0.000 [MovieReleaseName] => the.neighbors.2012.202.hdtv-lol [SubFormat] => srt [SubSumCD] => 1 [SubAuthorComment] => [SubAddDate] => 2013-10-01 23:00:36 [SubBad] => 0 [SubSumVotes] => 0 [SubRating] => 0.0 [SubDownloadsCnt] => 2432 [SubLastDownloadDate] => 2014-09-29 [SubAutoAssign] => 0 [IDMovie] => 159262 [IDMovieImdb] => 3198742 [MovieName] => "The Neighbors" September Fools [MovieYear] => 2013 [MovieImdbRating] => 7.7 [MovieImdbVotes] => 0 [MovieKind] => episode [ISO639] => en [IDSubLanguage] => eng [LanguageName] => English [UserNickName] => [SeriesEpisode] => 2 [SeriesSeason] => 2 [EncoDetEncoding] => UTF-8 [SeriesIMDBParent] => 2182229 )
The same thing happens if I try to download the content of 'SubDownloadLink' or directly from the website (not using any script). I tested it with another movie (Avengers: http://www.opensubtitles.org/de/subtitl ... ub/5052354).

Am I missing something?

User avatar
SimplyTheBOSS
Site Admin
Posts: 1326
Joined: Mon Feb 01, 2010 3:02 pm
Location: Finland

Re: 'ZipDownloadLink' does not contain Link to a Zipfile

Tue Sep 30, 2014 8:32 pm

Image

scorpio
Posts: 2
Joined: Tue Sep 30, 2014 5:48 pm

Re: 'ZipDownloadLink' does not contain Link to a Zipfile

Tue Sep 30, 2014 9:35 pm

Thanks a lot! Everything is working great again. :D

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 79 guests