Skip to content

Commit

Permalink
Hotfix radio migrations (#1428)
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j authored Feb 5, 2025
1 parent 583cc9f commit c53e3c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tauon/t_modules/t_db_migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,15 +554,15 @@ def database_migrate(
RadioStation(
title=station["title"],
stream_url=station["stream_url"],
country=station["country"],
website_url=station["website_url"],
icon=station["icon"],
stream_url_fallback=station["stream_url_unresolved"] if "stream_url_unresolved" in station else ""))
country=station.get("country", ""),
website_url=station.get("website_url", ""),
icon=station.get("icon", ""),
stream_url_fallback=station.get("stream_url_unresolved", "")))
new_radio_playlists.append(
RadioPlaylist(
uid=playlist["uid"],
name=playlist["name"],
scroll=playlist["scroll"] if "scroll" in playlist else 0,
scroll=playlist.get("scroll", 0),
stations=stations))
radio_playlists = new_radio_playlists

Expand Down

0 comments on commit c53e3c3

Please sign in to comment.