Skip to content

Commit

Permalink
Do not wipe website URL if stream URL hasn't changed
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Jan 29, 2025
1 parent 5c5003e commit 868fbc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tauon/t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18254,8 +18254,9 @@ def saved(self):
if self.add_mode:
radio: RadioStation = RadioStation()
radio.title = self.radio_field_title.text
radio.stream_url = self.radio_field.text
radio.website_url = ""
if radio.stream_url != self.radio_field.text:
radio.stream_url = self.radio_field.text
radio.website_url = "" # Different URL, null the website # TODO(Martin): no way to edit for now

if self.add_mode:
pctl.radio_playlists[pctl.radio_playlist_viewing].stations.append(radio)
Expand Down

0 comments on commit 868fbc0

Please sign in to comment.