Skip to main content

Chapter management tool with support for magnet links and filenames

Project description

https://img.shields.io/travis/Xayon/pychapter.svg https://img.shields.io/pypi/v/pychapter.svg

Chapter management tool with support for magnet links and filenames

Features

  • TODO

  • Given a magnet link, return TV a Chapter object with tv chapter data (filename, series, season, chapter)

Usage

This is a simple library, to use it just:

>>> Chapter(magnet='magnet:?xt=urn:btih:57aebdc26ceebf6f3c0ae69666fdd7fcfe09a1fd&dn=Ghost.Adventures.S11E02.Old.Montana.State.Prison.720p.HDTV.x264-DHD%5Brartv%5D&tr=http%3A%2F%2Ftracker.trackerfix.com%3A80%2Fannounce&tr=udp%3A%2F%2F9.rarbg.me%3A2710&tr=udp%3A%2F%2F9.rarbg.to%3A2710')

Chapter 11x2 - Old Montana State Prison

This returns the Chapter object representation for a given magnet link, wich is “Chapter {Season}x{episode} - {SeriesName}”

You can also play it using http://github.com/XayOn/python-SimpleTorrentStreaming/ with “play” method:

>> Chapter(magnet='magnet:?xt=urn:btih:57aebdc26ceebf6f3c0ae69666fdd7fcfe09a1fd&dn=Ghost.Adventures.S11E02.Old.Montana.State.Prison.720p.HDTV.x264-DHD%5Brartv%5D&tr=http%3A%2F%2Ftracker.trackerfix.com%3A80%2Fannounce&tr=udp%3A%2F%2F9.rarbg.me%3A2710&tr=udp%3A%2F%2F9.rarbg.to%3A2710').play()

This will launch the episode with mplayer

History

0.1.7

  • Fixed missing property

0.1.6

  • Added TPB provider to get magnets if not specified

0.1.5

  • Brown

0.1.4

  • Caching guessit output

0.1.3

  • Brown version

0.1.2

  • Added series property

0.1.1

  • Fixed bug preventing files not correctly recognized by guessit to work

0.1.0 (2015-08-30)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pychapter-0.1.7.tar.gz (12.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page