I'm developping a node.js module for the XML API, to make easier downloading and uploading subtitles.
Code: Select all
var OS = require('mymodule');
var OpenSubtitles = new OS('UserAgent', 'Username', 'Password');
OpenSubtitles.search({
imdbid: 'tt000000',
path: '/home/user/breakdance.avi'
}).then(function (subtitles) {
console.log('%s subtitles found', subtitles.length);
}).catch(function (error) {
console.error(error);
});
The goal is to have a fully-featured wrapper, entirely asynchronous and easy-to-use.
But I have some question:
1) if a user is registered on OpenSubtitles.org as VIP, or some other account without ads, and that the API queries "SearchSubtitles" using a token linked to that premium account, will the response contain links to subtitles without ads? Or is it only by passing by "DownloadSubtitles" ? (the token is sent with SearchSubtitles, so it would make sense that the returned links are ad-free)
2) Why does login in as user: 'wzqkejqkzj' & password: 'iiiiiiii' with a fake UserAgent (say 'QJZHEJHJZ') work?
EDIT: I'm sorry to edit this so much, but when I find the answer by myself, I prefer to take the related questions out rather than making someone take time to answer something non-needed.