Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3 from ArtyIF/next
Browse files Browse the repository at this point in the history
v0.9.0
  • Loading branch information
ArtyIF authored Sep 4, 2022
2 parents 3a3fc3e + 9a47d35 commit acb9ada
Show file tree
Hide file tree
Showing 10 changed files with 666 additions and 74 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This plugin is still in an early stage. Here's what it can do and what's planned
- [x] Let the user choose to sort stations
- [x] Filter states by country
- [x] Search stations by name and tags
- [x] Add/remove stations to/from Saved Stations
- [x] Add/remove stations to/from saved stations
- [x] Vote for stations
- [ ] Localization:
- - [ ] Of the main interface
Expand Down
13 changes: 9 additions & 4 deletions addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import xbmcgui

from resources.lib import routes, server, saved_stations
from resources.lib.locale import localize_string as _


def main():
Expand Down Expand Up @@ -36,7 +37,7 @@ def main():
elif mode[0] == "states":
server.connect()
routes.get_states(
addon_handle, args.get("state", [""])[0], args.get("page", [0])[0]
addon_handle, args.get("country", [""])[0], args.get("page", [0])[0]
)
elif mode[0] == "languages":
server.connect()
Expand All @@ -55,7 +56,9 @@ def main():
elif mode[0] == "search_by_tags":
routes.open_search_by_tags(addon_handle)
elif mode[0] == "search_sort":
routes.open_search_sort_directory(addon_handle, args["kind"][0], args["search_text"][0])
routes.open_search_sort_directory(
addon_handle, args["kind"][0], args["search_text"][0]
)
elif mode[0] == "saved_stations":
routes.get_saved_station_stations(addon_handle)
elif mode[0] == "saved_station_add":
Expand Down Expand Up @@ -86,8 +89,10 @@ def main():
else:
notif = xbmcgui.Dialog()
notif.notification(
"RadioBrowser² internal error! Tell the developer!",
"Add-on tried to access a non-existent mode: %s (all arguments: %s)" % (mode[0], args),
_("RadioBrowser² internal error! Tell the developer!"),
_(
"Add-on tried to access a non-existent mode: {0} (all arguments: {1})"
).format(mode[0], args),
xbmcgui.NOTIFICATION_ERROR,
)

Expand Down
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<addon id="plugin.audio.rbb" name="RadioBrowser²" provider-name="ArtyIF" version="0.8.2">
<addon id="plugin.audio.rbb" name="RadioBrowser²" provider-name="ArtyIF" version="0.9.0">
<requires>
<import addon="xbmc.python" version="3.0.0" />
<import addon="script.module.requests" version="2.27.1"/>
Expand Down
217 changes: 217 additions & 0 deletions resources/language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
# Kodi language file
# Addon Name: RadioBrowser²
# Addon id: plugin.audio.rbb
# Addon Provider: ArtyIF
msgid ""
msgstr ""
"Project-Id-Version: RadioBrowser²\n"
"Report-Msgid-Bugs-To: https://github.com/ArtyIF/plugin.audio.rbb/issues \n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"

msgctxt "#30000"
msgid "RadioBrowser² internal error! Tell the developer!"
msgstr ""

msgctxt "#30001"
msgid "Add-on tried to access a non-existent mode: {0} (all arguments: {1})"
msgstr ""

msgctxt "#30002"
msgid "Page {0}"
msgstr ""

msgctxt "#30003"
msgid "[B]{0} votes[/B]"
msgstr ""

msgctxt "#30004"
msgid "[B]Offline![/B]"
msgstr ""

msgctxt "#30005"
msgid "Add to saved stations"
msgstr ""

msgctxt "#30006"
msgid "Remove from saved stations"
msgstr ""

msgctxt "#30007"
msgid "Vote for station"
msgstr ""

msgctxt "#30008"
msgid "Most voted first"
msgstr ""

msgctxt "#30009"
msgid "Least voted first"
msgstr ""

msgctxt "#30010"
msgid "Most listeners first"
msgstr ""

msgctxt "#30011"
msgid "Least listeners first"
msgstr ""

msgctxt "#30012"
msgid "A-Z"
msgstr ""

msgctxt "#30013"
msgid "Z-A"
msgstr ""

msgctxt "#30014"
msgid "Highest bitrate first"
msgstr ""

msgctxt "#30015"
msgid "Lowest/undefined bitrate first"
msgstr ""

msgctxt "#30016"
msgid "Oldest change first"
msgstr ""

msgctxt "#30017"
msgid "Newest change first"
msgstr ""

msgctxt "#30018"
msgid "JSON decode error occurred while loading saved stations, resetting stations..."
msgstr ""

msgctxt "#30019"
msgid "Saved stations"
msgstr ""

msgctxt "#30020"
msgid "Most voted stations"
msgstr ""

msgctxt "#30021"
msgid "Trending stations"
msgstr ""

msgctxt "#30022"
msgid "Stations recently played by others"
msgstr ""

msgctxt "#30023"
msgid "Recently added/changed stations"
msgstr ""

msgctxt "#30024"
msgid "Stations by..."
msgstr ""

msgctxt "#30025"
msgid "Custom URL"
msgstr ""

msgctxt "#30026"
msgid "Stations by country"
msgstr ""

msgctxt "#30027"
msgid "Stations by state"
msgstr ""

msgctxt "#30028"
msgid "Stations by language"
msgstr ""

msgctxt "#30029"
msgid "Stations by tag"
msgstr ""

msgctxt "#30030"
msgid "Stations by codec"
msgstr ""

msgctxt "#30031"
msgid "All stations"
msgstr ""

msgctxt "#30032"
msgid "Search by name"
msgstr ""

msgctxt "#30033"
msgid "Search by tags"
msgstr ""

msgctxt "#30034"
msgid "{0} stations"
msgstr ""

msgctxt "#30035"
msgid "{0} total stations"
msgstr ""

msgctxt "#30036"
msgid "Enter station name"
msgstr ""

msgctxt "#30037"
msgid "Enter comma-separated tags"
msgstr ""

msgctxt "#30038"
msgid "Enter stream URL"
msgstr ""

msgctxt "#30039"
msgid "Voted for station"
msgstr ""

msgctxt "#30040"
msgid "Voted successfully"
msgstr ""

msgctxt "#30041"
msgid "Voting error"
msgstr ""

msgctxt "#30042"
msgid "Voting failed: {0}"
msgstr ""

msgctxt "#30043"
msgid "Station saved"
msgstr ""

msgctxt "#30044"
msgid "Saved successfully"
msgstr ""

msgctxt "#30045"
msgid "Station removed"
msgstr ""

msgctxt "#30046"
msgid "Removed successfully"
msgstr ""

msgctxt "#30047"
msgid "Not connected to server"
msgstr ""

msgctxt "#30048"
msgid "requests.get({0}) returned status code {1}"
msgstr ""

msgctxt "#30049"
msgid "Could not connect to any of radio-browser.info servers"
msgstr ""
Loading

0 comments on commit acb9ada

Please sign in to comment.