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

Updated due the change of url.. #2

Merged
merged 1 commit into from
Nov 21, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions t411.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#VERSION: 1.0
#AUTHOR: Davy39 <[email protected]>
#VERSION: 1.1
#AUTHORS: Davy39 <[email protected]>, Danfossi <[email protected]>

# Copyleft

Expand All @@ -11,14 +11,14 @@ class t411(object):

########### !!!!! CHANGE ME !!!!!! #############
###
# your identifiant on t411.me: ###
username = 'Change_Me' ###
# your identifiant on t411.io: ###
username = 'Your_User' ###
# and your password: ###
password = 'Change_Me' ###
password = 'Your_Pass' ###
###
###################################################

url = 'http://www.t411.me'
url = 'http://www.t411.io'
name = 'T411 (french - need login)'
supported_categories = {'anime':'', 'games': '', 'all': '', 'movies': 'cat=210&subcat=631', 'tv': 'cat=210&subcat=433', 'music': 'cat=395&subcat=623', 'software': 'cat=233', 'books': 'cat=404'}
cookie_values = {'login':username, 'password':password, 'remember':'1', 'url':'/'}
Expand Down Expand Up @@ -62,7 +62,7 @@ def __init__(self, results, url, *args):

def start_a(self, attr):
params = dict(attr)
if params.has_key('href') and params['href'].startswith("//www.t411.me/torrents"):
if params.has_key('href') and params['href'].startswith("//www.t411.io/torrents"):
self.current_item = {}
self.td_counter = 0
self.current_item['desc_link'] = 'http:' + params['href'].strip()
Expand Down Expand Up @@ -115,4 +115,4 @@ def search(self, what, cat='all'):
parser.close()
if len(results) <= 0:
break
i += 1
i += 1