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.
User avatar
vankasteelj
Posts: 175
Joined: Sun Nov 15, 2015 1:09 am

Since a few days, HD seems forced on API uploads

Mon Nov 30, 2015 11:31 pm

Hi,

I've been uploading a good amount of subtitles, and since a few days, no matter what I try, all my subtitles are marked as "HD", no matter if I specifically say "highdefinition = 0" or simply ignore that parameter.

And looking at the home screen of OS, where all subtitles I see recently uploaded by the community are also HD.

User avatar
oss
Site Admin
Posts: 5887
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: Since a few days, HD seems forced on API uploads

Tue Dec 01, 2015 5:49 am

I see different, there are some uploads without HD. HD mark is also forced, if subtitle filename/releasename contains 720p, 1080p, HDTV and similar strings. Try to upload with simple moviename.

User avatar
vankasteelj
Posts: 175
Joined: Sun Nov 15, 2015 1:09 am

Re: Since a few days, HD seems forced on API uploads

Tue Dec 01, 2015 3:39 pm

I see the problem then: HDTV doesn't mean HD :/ A lot of hdtv are 360p and 480p.

This is how I search for quality:

Code: Select all

// 480p if (title.match(/480[pix]/i)) { return '480p'; } // 720p if (title.match(/720[pix]/i) && !title.match(/dvdrip|dvd\Wrip/i)) { return '720p'; } // 1080p if (title.match(/1080[pix]/i)) { return '1080p'; } // not found, trying harder if (title.match(/DSR|DVDRIP|DVD\WRIP/i)) { return '480p'; } if (title.match(/hdtv/i) && !title.match(/720[pix]/i)) { return '480p'; } return false;
Notice the last test:

Code: Select all

title.match(/hdtv/i) && !title.match(/720[pix]/i)
For all non-regex people, this means it searches in the title if it has "HTDV" (case-insensitive: "HDtv" or "hdtv" or "hDtV" works). Then, it searches if the title has "720p", "720i" or "720x". If we found "HDTV" but there is no trace of "720[pix]", it means it's 480p, which is always the case.

If all you want is finding out if it's HD or not, then simply don't try to match with /hdtv/ because it's not a trustable word.

User avatar
oss
Site Admin
Posts: 5887
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: Since a few days, HD seems forced on API uploads

Thu Dec 03, 2015 8:34 am

ok I will change it

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 25 guests