Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve quality in T411 #2

Open
stven opened this issue Mar 17, 2013 · 3 comments
Open

Improve quality in T411 #2

stven opened this issue Mar 17, 2013 · 3 comments

Comments

@stven
Copy link

stven commented Mar 17, 2013

T411 website allows quality filter. It's better to use them instaed of adding "720p" or "dvdrip" in the search string.
We could add something like that:

    TitleStringReal = getTitle(movie['library'])
    Quality = simplifyString(quality['identifier'])
    qString = ""

    if Quality == "dvdrip":
        qString = '&submit=Recherche&subcat=631&term%5B17%5D%5B%5D=541&term%5B17%5D%5B%5D=542&term%5B7%5D%5B%5D=13&term%5B7%5D%5B%5D=14&term%5B7%5D%5B%5D=10'
    elif Quality == "720p":
        qString = '&cat=210&submit=Recherche&subcat=631&term%5B17%5D%5B%5D=541&term%5B17%5D%5B%5D=542&term%5B7%5D%5B%5D=15'
    elif Quality == "1080p":
        qString = '&cat=210&submit=Recherche&subcat=631&term%5B17%5D%5B%5D=541&term%5B17%5D%5B%5D=542&term%5B7%5D%5B%5D=16'
    elif Quality == "brrip":
        qString = '&cat=210&submit=Recherche&subcat=631&term%5B17%5D%5B%5D=541&term%5B17%5D%5B%5D=542&term%5B7%5D%5B%5D=8&term%5B7%5D%5B%5D=9&term%5B7%5D%5B%5D=17&term%5B7%5D%5B%5D=554'
    else:
        qString = ""     


    URL = (self.urls['search'] % (simplifyString(TitleStringReal))).replace('-',' ').replace('  ',' ').replace('  ',' ').replace('  ',' ').encode("utf8")
    URL=unicodedata.normalize('NFD',unicode(URL,"utf8","replace"))
    URL=URL.encode('ascii','ignore')

    URL = urllib2.quote(URL.encode('utf8'), ":/?=")
    URL = URL + qString

    data = self.getHTMLData(URL , opener = self.login_opener)
@an0Nym0us63
Copy link

if you tested that and it is working fine, you can make a pull request we will merge it

@brinbois
Copy link

yes its a good idea, howether if you specify the subcategorie in the url, you less the animation movie.
In next version i search for add categorie in URL :)

@Crupuk
Copy link

Crupuk commented Apr 22, 2014

@brinbois do you plan to add the possibility to custom the URL ?

Because i'm french, i'm always search with this string :

&term%5B17%5D%5B%5D=541&term%5B17%5D%5B%5D=542

To search only (Multi French included) Or TrueFrench..

Thanks for your job. CouchPotato for torrent is awsome !!

cyberden referenced this issue in cyberden/CouchPotatoServer Mar 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants