Skip to content

Commit 2a0116b

Browse files
committed
do not ask to update stations on new install again
1 parent d818db2 commit 2a0116b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pyradio/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,9 @@ def shell():
626626
print_session_is_locked()
627627
sys.exit(1)
628628
elif not pyradio_config.user_csv_found:
629+
stations_change = StationsChanges(pyradio_config)
630+
stations_change .stations_csv_needs_sync(print_messages=False)
631+
stations_change.write_synced_version()
629632
print_simple_error('Error: "stations.csv" already up to date!')
630633
sys.exit(1)
631634
else:

pyradio/radio.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1627,8 +1627,10 @@ def run(self):
16271627
if logger.isEnabledFor(logging.INFO):
16281628
logger.info('(detectUpdateStationsThread): not starting; session is locked!!!')
16291629
elif not self._cnf.user_csv_found:
1630+
self._cls_update_stations.stations_csv_needs_sync(print_messages=False)
1631+
self._cls_update_stations.write_synced_version()
16301632
if logger.isEnabledFor(logging.INFO):
1631-
logger.info('(detectUpdateStationsThread): not starting; copyed stations.csv!!!')
1633+
logger.info('(detectUpdateStationsThread): not starting; copied stations.csv!!!')
16321634
else:
16331635
if logger.isEnabledFor(logging.INFO):
16341636
logger.info('(detectUpdateStationsThread): checking in 10 seconds')

0 commit comments

Comments
 (0)