-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2668 from alxndr42/script-radioparadise
[script.radioparadise] 2.1.1
- Loading branch information
Showing
10 changed files
with
151 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
## v2.1.1 | ||
|
||
- Improve metadata handling | ||
|
||
## v2.1.0 | ||
|
||
- Add Serenity channel | ||
|
||
## v2.0.1 | ||
|
||
- Use new metadata API | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[ | ||
{ | ||
"channel_id": "0", | ||
"title": "Main Mix", | ||
"url_aac": "http://stream.radioparadise.com/aac-128", | ||
"url_flac": "http://stream.radioparadise.com/flacm" | ||
}, | ||
{ | ||
"channel_id": "1", | ||
"title": "Mellow Mix", | ||
"url_aac": "http://stream.radioparadise.com/mellow-128", | ||
"url_flac": "http://stream.radioparadise.com/mellow-flacm" | ||
}, | ||
{ | ||
"channel_id": "2", | ||
"title": "Rock Mix", | ||
"url_aac": "http://stream.radioparadise.com/rock-128", | ||
"url_flac": "http://stream.radioparadise.com/rock-flacm" | ||
}, | ||
{ | ||
"channel_id": "3", | ||
"title": "Global Mix", | ||
"url_aac": "http://stream.radioparadise.com/global-128", | ||
"url_flac": "http://stream.radioparadise.com/global-flacm" | ||
}, | ||
{ | ||
"channel_id": "42", | ||
"title": "Serenity", | ||
"url_aac": "http://stream.radioparadise.com/serenity", | ||
"url_flac": "http://stream.radioparadise.com/serenity" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import traceback | ||
|
||
import xbmc | ||
|
||
|
||
DEVELOPMENT = False | ||
|
||
|
||
class Logger(): | ||
def __init__(self, name): | ||
self.name = name | ||
|
||
def log(self, message, level=None): | ||
"""Log the message.""" | ||
if level is not None: | ||
xbmc.log(f'{self.name}: {message}', level) | ||
elif DEVELOPMENT: | ||
xbmc.log(f'{self.name}: {message}', xbmc.LOGINFO) | ||
else: | ||
xbmc.log(f'{self.name}: {message}', xbmc.LOGDEBUG) | ||
|
||
def exception(self, exc): | ||
"""Log the exception.""" | ||
if DEVELOPMENT: | ||
self.log(traceback.format_exc(), xbmc.LOGERROR) | ||
else: | ||
self.log(repr(exc), xbmc.LOGERROR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.