Kodi Community Forum

Full Version: [RELEASE] TorrentBrowser for private torrent sites [PTP,TL,SceneHD,HDME]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
TorrentBrowser plugin
UPDATE:

I've put this project on hold (for quite some time now) and I can't find time for it currently, I will however pick it up again some day.

Version 0.6.1:
Tried fixing search-errors when there are not enough matches for a full page to display. Can't test it though since my rig is not operational.

Information
I have written a plugin to make it easier to download movies from private torrent trackers. This addon gives a nice visual presentation of the movies and downloads the torrent files into a pre-chosen directory. The idea is to use this addon in synergy with a torrent client which supports folder watching, personally I use it together with rTorrent.

For me to add another site you wish I need some information shown in the codebox below, either that or an invite for the tracker. The information can be sent to me via email @ [email protected] or via PM.

Supported sites at this point:
  • TorrentLeech
  • PassThePopcorn
  • SceneHD
  • HDME
  • FunFile
  • SceneAccess
  • Demonoid

If you have a request for more sites I'm happy to add them to the list if I have access to them.

Features:
  • Browses torrent sites according to categories:
    • Most seeders
    • Most leechers
    • Most times snatched
    • Recently added
    • Search
  • Scrapes TheMovieDB for information about movies found in above category.
  • Displays the movie with Poster, Fanart, Plot etc.
  • When movie is clicked, the torrent is downloaded into pre-chosen download path.
  • Notification when torrent has been downloaded.

Screenshots:
Image
Image

Requirements for adding a site of your choice:
Code:
1. Login page
    - Post data
    - Login handler url
    - Failed login regexp
    
2. If it is possible to sort after
    - Seeders
    - Leechers
    - Snatched

3. Browse page urls (Needs to be checked with multiple "formats" such as DVDRiP & 720p, if not possible, just give the urls)
    - Url
    - Url to second page
    - Url to sorted by:
        - Seeders
        - Leechers
        - Snatched
    - Search url
    
4. Browse page information
    - Torrents per page
    - Possible (and wanted) category "numbers" (e.g. DVDRiP might give c32=1 in url)
    - Keyword for no matches found (E.g. Nothing found! for SceneAccess)
    
5. Page source
    - Typical browse page
    
6. If a direct hit search is done, does it redirect directly to the torrent page?

Credits:
Code:
* HDBits browser by watzen
        Main idea and being the inspiration of the first code.

* Youtube by Tobias Ussing And Henrik Mosgaard Jensen
        Structure is very inspired by the youtube plugin.

DOWNLOAD
Google Code
Torrentbrowser v0.6.0
CHANGELOG
Version 0.6.1
* Tried fixing the search error.
**NOTE** My HTPC is not functioning properly at the moment so this is untested.

Version 0.6.0
* Fixed the error when not all items are parsed.
* Fixed page-scrolling
* Fixed Next Page to be last, order might be kind of random now
* Number of items now works for search
* Cookie handling should now be fixed and the plugin ought to be a little quicker.
* Cleaned up code and unified debug-style
* Retrying login when failing, currently set to 7 retries (set in TBWeb.py)
* Checking the cookie for the correct domain to make sure the right site is used
and if the password cookie is expired.
Version 0.5.5
* Fixed errors caused by tiredness Smile
* Releasename / Normal name should work properly now
* RevolutionTT disregards Top 10
Version 0.5.4
* Added mechanize for usage when urllib2 form authentification wont work.
* Added support for RevolutionTT
* Tweaked the cookie settings
Version 0.5.3
* Added option to disable TheMovieDB scraping to increase speed.
* Added option to display release name instead of movie title.
Version 0.5.2
* Added support for Demonoid and SceneAccess
Version 0.5.1
* Added support for FunFile

TODO
* Gradual loading of scraped data to quicken the plugin. Is it possible to write to a listItem after it is presented?
* Add timeout to requests for IMDB-ID and TheMovieDB
* Username/Password check via mechanize
* PassThePopcorn.
* Collections
* Top 10
* Film Club
* Notification when download of torrent is done.
* Add labels and localization on popups/notifications.

IDEAS
* Add support for sequential streaming
* Scrape info on item focus instead of when building list.
* .. goes to parent
* Implementation of rTorrent/VuZe/uTorrent and/or more popular clients to get info when torrents is done.
* Add support for Toplists from PTP
Wow! I've been waiting for a plugin like this. Great work! Big Grin
Thanks Big Grin

Tell me if you run into problems!
Thanks for the credit Smile
Great job!
Funny, I just sat down and drafted a plugin for PTP today... you beat me to it! I'm looking at Broadcasthe.net next for television
can you please please please add hd-torrents.org Smile and broadcasthe.net would also be fucking sweet
gonzoja Wrote:Funny, I just sat down and drafted a plugin for PTP today... you beat me to it! I'm looking at Broadcasthe.net next for television

Sweet, I'm having some thoughts about TV-Shows as well! My account at Broadcasthe.net has been disabled due to inactivity, but I might talk to them and get it back online.
samzstein Wrote:can you please please please add hd-torrents.org Smile and broadcasthe.net would also be fucking sweet

I dont have an account for hd-torrents, but provide me with the information (look at the first post) needed and I'll add it!
Does anyone know how to sort torrents on Demonoid (Seeders/Leechers/Snatched)Huh

I've just found a way to sort after a search from the FAQ
Just added version 0.5.2 with support for SceneAccess and Demonoid. Demonoid support is limited by a decrease in categories since I found no way to sort the files except for when searching.
Would it be possible to add the technical name and not the formatted name of the move?
It's hard to see what release and quality.
Cribbe6 Wrote:Would it be possible to add the technical name and not the formatted name of the move?
It's hard to see what release and quality.

Yeah I'll add that to the next release until I find a good way to show it otherwise. Have a lot at school currently but after it cools down I'll fix this.
Does it work with win7 / Dharma?
Pages: 1 2 3 4 5