Giter Site home page Giter Site logo

spotify-plex-playlists's Introduction

Spotify -> Plex

Converts Spotify URI's to Plex Playlists on a Specified Interval.

Setup

Set the following Docker environment variables

SPOTIPY_CLIENT_ID - A Spotify client id created here: https://developer.spotify.com/dashboard/login

SPOTIPY_CLIENT_SECRET - The Spotify client secret from the created client id

PLEX_URL - Your plex url: http://plex:32400

PLEX_TOKEN - Your plex token found by https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/

SPOTIFY_URIS - A comma seperated list of the spotify URI's you would like to import: spotify:user:sonosplay,spotify:user:sonosplay:playlist:6nQjiSQhdf84s2AAxweRBv

SECONDS_TO_WAIT - How many seconds to wait before syncs

The following URI's are supported:

  • A user's URI which will import all public playlists a user owns: spotify:user:sonosplay
  • A playlist URI which imports a specific playlist (must be public): spotify:user:sonosplay:playlist:6nQjiSQhdf84s2AAxweRBv

Playlists will only be created on Plex if your Plex instance has at least one of the songs. Only songs found on your Plex will be created in the Plex Playlilst

spotify-plex-playlists's People

Contributors

bassrock avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

spotify-plex-playlists's Issues

some titles are not imported

Hey and thanks for this great script. I just started to use it and I think it's still working after this long time. But some files are still not imported. But I think its because RODEO on spotify is not the same as Rodeo on plex. Could you create a little fix to import everything with the same name, so without note the capitalization?
Very big thanks!

Remixes are not found in Plex library

Spotify titles remixes differently to the rest of the world for some reason. These can be matched:

<title> - <remixer> Remix --> Spotify's convention
<title> (<remixer> Remix)

These can probably also be matched to each other since many metadata databases will not even specify if they're the original mix:

<title> - Original Mix --> Spotify's convention
<title> (Original Mix)
<title>

plexapi error

Hi,
I have configured the Docker file, but I get this error.

ModuleNotFoundError: No module named 'plexapi'

Plex I have it in a NAS and the Python file running it from Windows 10.

Thanks

Suddenly problem with the connection to plex

Hey man,
First of all great find, it worked for a while but now i get (a few hours in) the following error:

2020-04-19 21:12:43 | stdout | requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='(deleted)', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fb84ec6b518>, 'Connection to deleted timed out. (connect timeout=30)'))
response = method(url, headers=headers, timeout=timeout, **kwargs)
2020-04-19 21:12:43 | stdout | File "/usr/local/lib/python3.7/site-packages/plexapi/server.py", line 343, in query
2020-04-19 21:12:43 | stdout | data = self.query(self.key, timeout=timeout)
2020-04-19 21:12:43 | stdout | File "/usr/local/lib/python3.7/site-packages/plexapi/server.py", line 102, in __init__
2020-04-19 21:12:43 | stdout | plex = PlexServer(baseurl, token)
2020-04-19 21:12:43 | stdout | File "spotify-sync.py", line 131, in <module>
2020-04-19 21:12:43 | stdout | Traceback (most recent call last):
2020-04-19 21:12:43 | stdout | During handling of the above exception, another exception occurred:
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='deleted', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fb84ec6b518>, 'Connection to deleted timed out. (connect timeout=30)'))
2020-04-19 21:12:43 | stdout | raise MaxRetryError(_pool, url, error or ResponseError(cause))
2020-04-19 21:12:43 | stdout | File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment
etc

Any ideas?
Manually using https://plex.tv/api/resources?X-Plex-Token= with my token works just fine.

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.