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

Kodi support #6

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
e5150da
Ensure monkey patches loading
steeve Feb 4, 2014
de19503
RSS Torrent parser, only supports movies for now
steeve Feb 4, 2014
780d241
Helper module for commands (first run, clear cache)
steeve Feb 4, 2014
7038cde
Library integration code, use with caution
steeve Feb 4, 2014
7c93a00
Properly load cmd and library integration code
steeve Feb 4, 2014
b5f700b
Bitsnoop search engine
steeve Feb 4, 2014
0da4f1c
Nyaa first iteration
steeve Feb 4, 2014
ee175e3
Library integration and diverse helper methods
steeve Feb 4, 2014
56df150
RSS based KAT provider
steeve Feb 4, 2014
84f31a2
Change some wording
steeve Feb 4, 2014
a922ccc
Moar wording change, library integration installer
steeve Feb 4, 2014
9b152b0
Switch YIFY to new provider. Closes #94
steeve Feb 4, 2014
b26b7ee
Config for NYAA and Bitsnoop
steeve Feb 4, 2014
46d67a5
Adopt XBMC's way of displaying genres
steeve Feb 4, 2014
0e57383
Ensure magnet boosters only for magnets
steeve Feb 12, 2014
05aff3b
Get torrent name via torrent2http, not via the magnet's DN attribute.
steeve Feb 12, 2014
3ca2f9c
Use URI for new torrent2http
steeve Feb 12, 2014
8ec7a0d
Handle image urls in description, find them and use them
steeve Feb 12, 2014
caefe33
Find seeders and leechers numbers in other attributes in RSS
steeve Feb 12, 2014
8d68a12
ExtraTorrent scraper. Closes #62
steeve Feb 12, 2014
2b8c6e7
Finish library uninstall, make sure it works properly.
steeve Feb 20, 2014
5fa8b78
Add rutor tracker on magnet booster
steeve Feb 20, 2014
40ffa4e
Fix typo on BitSnoop
steeve Feb 20, 2014
712d325
Fix image extractor in nfo
steeve Feb 20, 2014
1309147
Small perf refactor
steeve Feb 20, 2014
eafed60
YIFY: Small GUI refactor, order genres by seeds
steeve Feb 20, 2014
d243a1d
BTDigg provider
steeve Feb 20, 2014
a3c5c6d
Fix typo in settings
steeve Feb 20, 2014
9c96e35
Helper method to get XBMC language
steeve Feb 20, 2014
62da924
Make sure the playing item is complete, when resolved.
steeve Feb 20, 2014
919de22
Porn => Adult and XXX
steeve Feb 20, 2014
b4cbe2e
MIN_COMPLETED_PIECES should be a constant
steeve Feb 20, 2014
2aec4f1
Chose the torrent name if no information is found or exists
steeve Feb 20, 2014
c9a56fd
KAT: Add TV, remove episodes content_type (for now)
steeve Feb 20, 2014
3eca933
Remove unnescessary caching.
steeve Feb 20, 2014
3987364
TPB: Fix Next page once and for all
steeve Feb 20, 2014
bebb4c6
Make sure we grab season and episode for the current ListItem
steeve Feb 20, 2014
9fdcca3
Remove Max Upload to prevent cheating. Let's be the good guys here.
steeve Feb 20, 2014
3edfe76
Reordering settings
steeve Feb 20, 2014
5c04641
Esthetic changes
steeve Feb 20, 2014
7763a98
Clear cache command.
steeve Feb 20, 2014
b5d6b77
Ensure GA Visitor persistance
steeve Feb 20, 2014
e7e9dac
Cache clearing
steeve Feb 20, 2014
cf10a85
BTDigg: proper sort constants
steeve Feb 20, 2014
e24fee8
Fix issue when filename would have utf-8 chars
steeve Feb 20, 2014
59c4666
ExtraTorrent: remove episodes content_type
steeve Feb 20, 2014
fb799d9
TPB: Reorder categories
steeve Feb 20, 2014
0b1052e
Nyaa: Fix search
steeve Feb 20, 2014
e019e44
Fix and optimize search for various providers
steeve Feb 20, 2014
317e299
Make sure we only fetch movie information if we are displaying movies
steeve Feb 20, 2014
af945d5
Propagate content_type for RSS
steeve Feb 20, 2014
3e5d0c7
Make sure the cache is cleared at first run
steeve Feb 20, 2014
dc26bbf
Ask when adding media to the library
steeve Feb 20, 2014
45e6e9b
Fix TPB issue which would prevent TPB from working altogether
steeve Feb 21, 2014
04dcbc6
Remove debug log
steeve Feb 21, 2014
b49adae
Fix unicode issue which would prevent certain providers from working
steeve Feb 21, 2014
1820eea
Fix metadata display while playing
steeve Feb 24, 2014
a02a240
Properly get director
steeve Feb 24, 2014
c740bfc
Reshuffle trackers
steeve Feb 24, 2014
4ef5ffb
Kodi support
ujnatg Dec 6, 2014
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
Prev Previous commit
Next Next commit
MIN_COMPLETED_PIECES should be a constant
  • Loading branch information
steeve committed Feb 20, 2014
commit b4cbe2eabd70df7f898e275972dce44ed4976192
3 changes: 2 additions & 1 deletion resources/site-packages/xbmctorrent/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
TORRENT2HTTP_TIMEOUT = 20
TORRENT2HTTP_POLL = 1000
PLAYING_EVENT_INTERVAL = 60
MIN_COMPLETED_PIECES = 0.5

WINDOW_FULLSCREEN_VIDEO = 12005

Expand Down Expand Up @@ -215,7 +216,7 @@ def loop(self):
biggest_file = sorted(files, key=lambda x: x["size"])[-1]
percent_complete = float(biggest_file["complete_pieces"]) / float(biggest_file["total_pieces"]) * 100.0

if percent_complete >= 0.5:
if percent_complete >= MIN_COMPLETED_PIECES:
plugin.log.info("Resolving to http://%s/files/%s" % (t2h_instance.bind_address, biggest_file["name"]))
has_resolved = True
url_name = "/".join(map(urllib.quote, biggest_file["name"].split("/")))
Expand Down