Skip to main content

Package mainly used by SmartTV, contains APIs for Movies,TV Shows, Torrents, Weather andLocation info as well as torrent client

Project description

Welcome to entertainment-package 👋

Version Made in Python Maintenance License: MIT Codacy Badge Travis CI Twitter: GrbavaCigla

Package mainly used by SmartTV, contains APIs for Movies, TV Shows, Torrents, Weather and Location info as well as torrent client

🏠 Homepage


  • python >= 3.4
  • python-libtorrent (pip)


pip install entertainment



import entertainment

Movie API - YTS.LT


from entertainment import searchMovies

list_of_movies = searchMovies("Avengers") # Returns list of Movies (class Movie)

Movie class

from entertainment import Movie

movie = Movie.fromId(13106)
>>> movie.trailer_code                             # Returns youtube trailer video ID
>>>                                       # Returns YTS id
>>> movie.url                                      # Returns YTS URL
>>> movie.imdb_code                                # Returns IMDB ID code
>>> movie.title                                    # Returns title
'Avengers: Endgame'
>>> movie.titleEn                                  # Returns title
'Avengers: Endgame'
>>> movie.slug                                     # Returns slug
>>> movie.year                                     # Returns year
>>> movie.rating                                   # Returns IMDB rating
>>> movie.genres                                   # Returns list of genres
['Action', 'Adventure', 'Drama', 'Sci-Fi']
>>> movie.description                              # Returns description
"After the devastating events of Avengers: Infinity War (2018), the universe is in ruins due to the efforts of the Mad Titan, Thanos. With the help of remaining allies, the Avengers must assemble once more in order to undo Thanos's actions and undo the chaos to the universe, no matter what consequences may be in store, and no matter who they face..."
>>> movie.language                                 # Returns language
>>> movie.covers                                   # Returns cover images (small,medium,large)
>>> movie.torrent_data                             # Returns list of TorrentMovieDatas
  entertainment.torrent.TorrentMovieData object at ...
>>> movie.runtime                                  # Returns runtime in minutes



from entertainment import searchSeries

list_of_tv_shows = searchSeries("Silicon Valley")

Serie class

from entertainment import Serie

serie = Serie.fromId(143)
>>> serie.title
'Silicon Valley'
>>> serie.url
>>> serie.type
>>> serie.language
>>> serie.genres
>>> serie.status
>>> serie.runtime
>>> serie.premiered
>>> serie.official_site
>>> serie.rating
>>> serie.timezone
'United States'
>>> serie.country_code
>>> serie.tvrage_code
>>> serie.thetvdb_code
>>> serie.imdb_code
>>> serie.covers
>>> serie.description
'In the high-tech gold rush of modern Silicon Valley, the people most qualified to succeed are the least capable of handling success. From Mike Judge comes this satire about a programmer whose game-changing algorithm becomes the subject of a valley-wide bidding war.'
>>> serie.previous_episode
>>> serie.next_episode
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/site-packages/entertainment/", line 125, in next_episode
    return self.parsed["_links"]["nextepisode"]
KeyError: 'nextepisode'
# ToDo: Fix, make custom error when episode, doesn't exist


👤 Alexa Ognjanovic

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2019 Alexa Ognjanovic.
This project is GPLv3 licensed.

This README was generated with ❤️ by readme-md-generator

Project details

Download files

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

Files for entertainment, version 1.0.7
Filename, size File type Python version Upload date Hashes
Filename, size entertainment-1.0.7-py3-none-any.whl (20.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size entertainment-1.0.7.tar.gz (9.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page