-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Pathing issueIssue 2571, 2585, 2591 #943
base: development
Are you sure you want to change the base?
Conversation
Patch for: TypeError: coercing to Unicode: need string or buffer, instance found Changed url to url.get_full_url()
There appear to be two issues. - Plex authentication always fails (pw_mgr is not passed to getURL) - etree.fromstring already returns the root Element. Unlike ElementTree, Element doesn't have getroot(), nor is it needed here. Fixes - Add password_mgr=pw_mgr parameter to sickbeard.helpers.getURL - remove .getroot() from media_container
if throw_exc: | ||
raise | ||
else: | ||
return None | ||
|
||
except socket.timeout: | ||
logger.log(u"Timed out while loading URL " + url, logger.WARNING) | ||
logger.log(u"Timed out while loading URL " + req_to_str(url),, logger.WARNING) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tried this pr, got syntax error here. (Double commas)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thx for letting me know.
Thanks for the fix! I'm happy to have my Plex notifications working again. |
Thanks from me as well. Plex updates don't error anymore for me |
Is this on the Dev or master branch yet? |
I don't think so. I just manually patched it in to my local copy from the PR. |
Is there a timeline on when this will be merged in? |
It is indeed not yet implemented in dev or master. But this is something we have to w8 for midgetspy to do. If you realy want to pull this patch, you can from my repository: https://github.com/Mad-Piggy/Sick-Beard |
Just wanted to mention that the fix for the coercion errors is also provided in #939. That problem is actually bigger than the Plex notifier but shouldn't have any impact on the functionality. It's the logging of an error that goes wrong. I think the problem with Plex was that the password manager wasn't supplied with the getURL() call, so it failed. But due to the unrelated problem with the logging of that error, it wasn't clear what exactly was going wrong. So perhaps it would be easier to have this merged if both PR's focus on fixing only 1 thing, with #939 for the logging fix and this PR for the Plex fix. I think including too many things in 1 PR might make it harder to determine if it can (and should) be merged (but I could be wrong about that). Note that with only the plex fix your branch would no longer cause an error when connecting to plex and the error would no longer need to be logged so the coercion problem wouldn't occur anymore either. Just to say that it would still remain entirely functional. |
Just wanted to say thanks for the fixes! Saved them in a stable branch and am never updating SB again. |
Any eta on when this pull request will be merged into development or master? |
I think development on SickBeard has ceased... Personally I've switched to SickRage which is somewhat based on this one but still under active development. |
Wow, that's really sad if true. I hope that's not the case and he's just on a sabbatical. |
Yeah, hard to tell. He hasn't said anything on the forums at sickbeard.com either, so nobody really knows for sure... |
By the way, if folks want to apply these patches (and/or any others while the primary developer is missing), there are good instructions here: http://stackoverflow.com/a/28729484. Basically, you can create pull requests between the requests here and your own forked repository. |
Patch for issues: