Tyzer34 / plexMusicPlayer

Playback music with Alexa from your Plex Server!
https://medium.com/@Tyzer34/plex-alexa-the-perfect-wedding-38b14b41faf0#.b71cd6lsn
GNU General Public License v3.0
35 stars 19 forks source link

Songs keep stopping #32

Closed holmesb closed 6 years ago

holmesb commented 6 years ago

Hi, Songs keep stopping before finished. Installed this on heroku (free) and songs start via utterances successfully.

Waking my app before playing using the heroku dashboard makes no difference. When songs abruptly stop, Echo Show continues to display "now playing" for a 5-10 seconds before going home. I can issue further utterances successfully (eg "alexa, resume playing" ), so songs appear to be paused rather than stopping completely, but same happens again upon resumption. I have no internet\wifi issues with this or other devices on this network. The time it stops at is inconsistent. Stopped 3m40s then 2m50 twice. Longest I've had is 4m40s. Songs shorter than this will successfully complete and play the next song, but this won't last as long.

Any ideas? Below is my app log from heroku. Are there any other logs I can supply to help diagnose?

2017-12-02T10:41:01.522644+00:00 heroku[web.1]: State changed from down to starting
2017-12-02T10:41:05.553632+00:00 heroku[web.1]: Starting process with command `waitress-serve --port=17974 server:application`
2017-12-02T10:41:07.902458+00:00 app[web.1]: /app/.heroku/python/lib/python3.5/site-packages/fuzzywuzzy/fuzz.py:35: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
2017-12-02T10:41:07.902483+00:00 app[web.1]:   warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
2017-12-02T10:41:07.909538+00:00 app[web.1]: Serving on http://0.0.0.0:17974
2017-12-02T10:41:09.214010+00:00 heroku[web.1]: State changed from starting to up

I'm in the UK and we have no AMAZON.MusicCreativeWorkType, AMAZON.MusicGroup nor AMAZON.MusicAlbum slot types yet. I've used English (U.S.) Interaction model in an attempt to workaround. Could this be the cause?

rvramesh commented 6 years ago

Is your plexserver and echo are on the same network? If so, I am thinking of changing stream_base_url to base_url @ https://github.com/Tyzer34/plexMusicPlayer/blob/8b4b4dac35d6ba7ba8719d0d86d7f3cb331b70d6/plexmusicplayer/methods.py#L56 may help

holmesb commented 6 years ago

Sorry, I fixed this and forgot to update. Was just because my plex server's remote access wasn't working. I assumed this does not matter because plex and echo are on the same network, but clearly it does. Fixed remote access and no more stopping :-) Many thanks.