GithubHelp home page GithubHelp logo

stasevi4 / script.subscription.pulsar.imdb-movies Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 308 KB

It allows to integrate to the libray movies from IMDB to be played by Pulsar

Home Page: http://forum.kodi.tv/showthread.php?tid=214856&pid=1890867#pid1890867

License: GNU General Public License v3.0

Python 100.00%

script.subscription.pulsar.imdb-movies's Introduction

Introduction

This is script allows to create personalized list of movies or TV Shows to be integrated in the local library and to be played for Pulsar.

The advantage is that you have all the tools from local library as trailer, cinema experience, etc.

The script makes a database, then you can run the script periodic and it will add only the new entries. If you erase the file from the local library, it won't add it again.

You can erase the database any moment from the script plugin.

It is possible to write the list manually or create them from internet.

Subscribing TV shows

listing = ['Game of thrones', 'The Simpsons'] example from list tv shows

ID = [] empty for tv shows

subscription.integration(listing, ID,'SHOW', path to save)

Subscribing Movies without IMDB_ID

listing = ['Frozen (2013)', 'Guardians of the Galaxy (2014)'] example from list movies, it is better to have the year

ID = [] IMDB_ID, if it is empty the function will figure it out

subscription.integration(listing, ID,'MOVIE', path to save)

Subscribing Movies with IMDB_ID

listing = ['Edge of tomorrow', 'Gone girl'] example from list movies, the year isn't necessary

ID = ['tt1631867', 'tt2267998'] IMDB_ID, if it is empty the function will figure it out

subscription.integration(listing, ID,'MOVIE', path to save)

Settings class

It gets information from addon configuration

settings = subscription.Settings() # create the setting object

settings.movie_folder = path to save the movies settings.show_folder = path to save the tv shows

Browser to create the list from internet

browser = subscription.Browser() define the browser to open URL

  • browser.open(url)
  • url to open
  • return true if it is 200 status
  • browser.status : status and error
  • browser.content : content html

browser.login(url, payload, verification expression) open a page and do the login, return true if can login

  • url login page
  • payload dictionary {'username': username, 'pass', password, ..} all the variable from the FORM
  • verification expression, string to check it couldn't login, like incorrect username and password.

script.subscription.pulsar.imdb-movies's People

Contributors

scsi03 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.