-
Notifications
You must be signed in to change notification settings - Fork 455
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
[plugin.audio.cbcradio] v2.0.4 #4374
[plugin.audio.cbcradio] v2.0.4 #4374
Conversation
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.
Please see my comments.
plugin.audio.cbcradio/addon.xml
Outdated
</extension> | ||
<extension point="xbmc.addon.metadata"> | ||
<summary lang="en_GB">CBC Radio</summary> | ||
<license>GNU General Public License, v2</license> |
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.
Please use the SPDX identifier (https://spdx.org/licenses/) and make sure the license matches the license from the LICENSE.md. It currentlty does not!
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.
done
plugin.audio.cbcradio/default.py
Outdated
# cbc music has 5 min news breaks at the top of the hour | ||
news_break() | ||
while calc_minutes() in [00, 1, 2, 3, 4, 5]: | ||
xbmc.sleep(10000) |
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.
This call completely block execution for 10 seconds without the option to abort. You should also use the MONITOR.waitForAbort()
here and test for abort afterwards. Just like in line 198
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.
done
8faea09
to
d226e6c
Compare
plugin.audio.cbcradio/cbc.py
Outdated
PLAYER.updateInfoTag(play_item) | ||
chill(5) | ||
if MONITOR.abortRequested(): | ||
abort() |
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.
ah crap.... was going to do an abort func and then changed it to chill()
i'll fix this tomorrow. i literally just have to delete lines 212-13.
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.
i guess have a look anyway and let me know if there is anything besides this to fix before i resubmit.
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.
actually, it should technically never reach the non-existent func. the check for MONITOR.abortRequested()
is in the chill()
func.... testing on my dev box i never get an exception when exiting.
up to you if you want it removed or not.
845847e
to
99ec79c
Compare
removed those two lines. should be fine now unless there are further problems |
Description
Plugin for steaming live stations from CBC Radio One and CBC Music
Checklist:
Additional information :