Skip to content

Commit

Permalink
refactor addon
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjell Knudsen committed Dec 16, 2024
1 parent 123f872 commit f297764
Show file tree
Hide file tree
Showing 9 changed files with 531 additions and 305 deletions.
506 changes: 506 additions & 0 deletions addon.py

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.audio.radiobrowser" name="Radio-Browser.info" version="1.2.0" provider-name="sailor">
<addon id="plugin.audio.radiobrowser" name="Radio-Browser.info" version="2.0.0beta" provider-name="sailor">
<requires>
<import addon="xbmc.python" version="2.24.0"/>
<import addon="xbmc.python" version="3.0.0"/>
</requires>
<extension point="xbmc.python.pluginsource" library="main.py">
<extension point="xbmc.python.pluginsource" library="addon.py">
<provides>audio</provides>
</extension>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<assets>
<icon>icon.png</icon>
<fanart>fanart.jpg</fanart>
</assets>
<summary lang="en">Radio-Browser</summary>
<summary lang="bg">Radio-Browser</summary>
<summary lang="de">Radio-Browser</summary>
Expand Down
Binary file modified fanart.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
300 changes: 0 additions & 300 deletions main.py

This file was deleted.

2 changes: 1 addition & 1 deletion resources/language/resource.language.de_de/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ msgstr "100 letzt-geklickte Stationen"

msgctxt "#32004"
msgid "Tags"
msgstr "Kategorien"
msgstr "Kategorien (Genres)"

msgctxt "#32005"
msgid "Countries"
Expand Down
2 changes: 1 addition & 1 deletion resources/language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ msgstr ""

msgctxt "#32004"
msgid "Tags"
msgstr ""
msgstr "Tags (Genres)"

msgctxt "#32005"
msgid "Countries"
Expand Down
Empty file added resources/lib/__init__.py
Empty file.
16 changes: 16 additions & 0 deletions resources/lib/languagecodes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from enum import Enum


class LanguageCode(Enum):
TOP_CLICKED = 32000
TOP_VOTED = 32001
LAST_CHANGED = 32002
LAST_CLICKED = 32003
TAGS = 32004
COUNTRIES = 32005
ALL = 32006
SEARCH = 32007
MY_STATIONS = 32008
REMOVE_STATION = 32009
ADD_STATION = 32010
SEARCH_STATION = 32011

0 comments on commit f297764

Please sign in to comment.