Coder Social home page Coder Social logo

putio-kodi's People

Contributors

batuaksoy avatar berkanteber avatar cenkalti avatar igungor avatar joelpurra avatar muraty avatar ybrs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

aykut joelpurra

putio-kodi's Issues

Single subtitle downloaded even if more are available

When watching a video on the put.io website, multiple subtitle options are often given -- usually with different language options. Using this add-on, kodi loads one of the available subtitles, which may not all be desirable, but does not give the option to change to another subtitle/language.

  • Which subtitles gets loaded is seemingly random, but deterministic -- it does not (usually) change when watching the same video.
  • The loaded subtitle is listed in kodi as "external", without specifying language nor filename.
  • There is also an option to upload custom/additional subtitles directly on the put.io website. The uploaded subtitle may or may not also load it in kodi.

Inspecting the source code, it seems the full list of subtitles from the put.io api are passed to kodi -- but not in the format kodi expects.

  • Kodi ends up (deterministically) picking one of the subtitles coming from the api. Perhaps it's the last one in the list? How the list is assembled by the api is unclear, but may relate to subtitle filenames.
  • The loaded subtitle may be in a language which is not expected, and perhaps not desired by the user.
  • If the user selects a preferred subtitle on the put.io website, the selection does not seem to apply to kodi.
  • Uploading a subtitle on the put.io website may end up loading it in kodi -- possibly depending on the subtitle api's ordering.

I'd expect all subtitles available on the put.io website's player to be available to the kodi player.

Delete a file

Right click a file or directory, and delete it recursively.

Playback fails on Xbox Kodi 19.4

This is the error I get when attempting to play any media file:

2022-04-21 00:17:04.709 T:5424     INFO <general>: initializing python engine.
2022-04-21 00:17:06.116 T:5424    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'dict' object has no attribute 'status_code'
                                                   Traceback (most recent call last):
                                                     File "Q:\Users\UserMgr0\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\plugin.video.putio\main.py", line 217, in <module>
                                                       main()
                                                     File "Q:\Users\UserMgr0\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\plugin.video.putio\main.py", line 211, in main
                                                       play(item=item)
                                                     File "Q:\Users\UserMgr0\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\plugin.video.putio\main.py", line 157, in play
                                                       li.setSubtitles(item.subtitles())
                                                     File "Q:\Users\UserMgr0\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\plugin.video.putio\resources\lib\putio.py", line 189, in subtitles
                                                       assert subtitles_list_response.status_code == 200
                                                   AttributeError: 'dict' object has no attribute 'status_code'
                                                   -->End of Python script error report<--
                                                   
2022-04-21 00:17:06.196 T:5424     INFO <general>: Python interpreter stopped
2022-04-21 00:17:06.225 T:4616    ERROR <general>: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.putio/?action=play&item=746730408]

Seems like the response is empty or broken when attempting to fetch subtitles list:

subtitles_list_url = '/files/%s/subtitles' % self.id
subtitles_list_response = self.client.request(subtitles_list_url)
assert subtitles_list_response.status_code == 200

Could you please take a look, @BatuAksoy?

New Feature Request

Hey Guys,

Love the addon!

I was wondering if it's possible to add an image and content scraper that scans the Put.io library?

Cheers,

Alex

XBOX Kodi "Matrix" 19.3 plugin fails to start

Put.io for Kodi fails to start in the latest build of Kodi 19.3.0 running on the XBOX

Kodi Build 19.3 (19.3.0) for XBOX
Put.io plugin 3.0.0

Displays generic error message upon start, no further information found in the log

It looks like the plugin is trying to initialize the Oauth with put.io and failing

Download file

Right click a file and download a file. Directories are not downloadable yet.

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.