Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web server isn't running error #12

Open
TrickzZ99 opened this issue Mar 28, 2018 · 8 comments · May be fixed by #15
Open

web server isn't running error #12

TrickzZ99 opened this issue Mar 28, 2018 · 8 comments · May be fixed by #15

Comments

@TrickzZ99
Copy link

TrickzZ99 commented Mar 28, 2018

I have figured out how to properly launch the flask_server.py file and am using the updated css coding. While the server is active and the download button is pressed, I get an alert saying "(random song)" is downloading" then immediately get "the web server isnt running!". I am unsure what to do from here. I have removed and reapplied the extension itself and stopped and started the flask server, but I run into the same issue. Is there any steps that I am not seeing?

Also, I am confused on how to change the location to which the songs save and how to set the save options. I.e. I would like to save the songs to the automatically add to itunes folder and have the it save as (song name) - (artist).mp3

Any and all help will be appreciated. Thank you in advance!

This is the log I get after a song is attempted to be downloaded.

screenshot 5

@adexcide
Copy link

Getting same error, as well as the buttons not fulling fitting on the page of pandora.com

@TrickzZ99
Copy link
Author

@AdexGold If you go to the issues tab, there is a user that fixed the css coding. I just copied the entire code and replaced it over the original code of the content file within the pandora downloader folder. Copy the updated code, edit the content.css file in the downloader folder using notepad, delete everything in it and paste the new code, and save it. You might have to remove the extension and reapply it for the change to take place. It should properly push both buttons to the right far enough for both of them to perfectly show.

@MiniDude22
Copy link
Owner

Could you get the latest version of the code and see if you're still getting it?

@TrickzZ99
Copy link
Author

@MiniDude22 Did you update the code onto the main page? If so then I am still running into the same issue. If that wasn't the case I will copy and replace the code within all 4 of the changed files and re run the flask server. Just to be clear all of this should be done in a regular windows command prompt, not the python command prompt.

@DerrikMilligan
Copy link

The main page? It's pushed to the git so if you redownload it you'll have the new files. And yeah you run the python command in a Windows command prompt if you're in Windows.

@crypdick
Copy link

@DerrikMilligan @MiniDude22 I just cloned this repo and ran into this issue. Here's the text of the traceback:

127.0.0.1 - - [23/Jul/2018 12:52:29] "POST /download HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/home/shit/bin/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/shit/bin/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "/home/shit/bin/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/shit/bin/anaconda3/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/shit/bin/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/shit/bin/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/shit/bin/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/shit/bin/anaconda3/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/shit/bin/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/shit/bin/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/shit/bin/Pandora-Downloader/flask_server.py", line 34, in pandoraDownloader
    re.sub(u'[<>\*:\\/\"|?]', '', request.form['station'].encode('utf-8') ) + ".m3u"
  File "/home/shit/bin/anaconda3/lib/python3.6/re.py", line 191, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: cannot use a string pattern on a bytes-like object

@crypdick
Copy link

I got this plug-in working by gettign rid of a bunch of the encoding/decoding statements that seemed to be make the regexp substitutions break. I'm not sure if this will cause problems for people, but hey, at least the plug-in works for me now. I also updated the calls to urllib to be compatible with Python 3. Here's my fork, happy to submit a PR.

@DerrikMilligan
Copy link

DerrikMilligan commented Jul 24, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants