Skip to content

Commit

Permalink
rescan duration on play
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiko2k committed Mar 24, 2023
1 parent 7de46f4 commit 901592f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@

Changelog----------------------------

v7.6.1

- Fixed black bars in slate mini mode
- Fixed high CPU in slate mini mode
- Tweaked to rescan files when duration is zero

v7.6.0

- Added rework of broadcast feature
Expand Down
2 changes: 1 addition & 1 deletion extra/com.github.taiko2k.tauonmb.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

<releases>

<release version="7.6.0" date="2023-03-20">
<release version="7.6.1" date="2023-03-24">
<description>
<ul>
<li>Added listen along feature</li>
Expand Down
3 changes: 2 additions & 1 deletion t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8082,6 +8082,7 @@ def __init__(self):
self.spotc = None
self.librespot_p = None
self.MenuItem = MenuItem
self.tag_scan = tag_scan

def start_remote(self):

Expand Down Expand Up @@ -43746,7 +43747,7 @@ def drop_file(target):
tauon.exit("Quit keyboard shortcut pressed")

if keymaps.test('testkey'): # F7: test
print(pctl.radio_playlists)
pctl.playing_object().length = 0
pass

if gui.mode < 3:
Expand Down
11 changes: 11 additions & 0 deletions t_modules/t_phazor.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,17 @@ def chrome_start(track, enqueue=False, t=0):
length = 0
remain = 0
position = 0

if target_path and target_object and target_object.length == 0 and not target_object.is_cue:
print("Track has duration of 0, scanning file")
temp = tauon.TrackClass()
temp.fullpath = target_path
tauon.tag_scan(temp)
target_object.length = temp.length
if pctl.playing_object() is target_object:
pctl.playing_length = target_object.length
del temp

if state == 1 and not pctl.start_time_target and not pctl.jump_time and \
loaded_track:

Expand Down
2 changes: 1 addition & 1 deletion tauon.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if sys.platform != 'win32':
import fcntl

n_version = "7.6.0"
n_version = "7.6.1"
t_version = "v" + n_version
t_title = 'Tauon Music Box'
t_id = 'tauonmb'
Expand Down

0 comments on commit 901592f

Please sign in to comment.