by Bex » Tue Aug 07, 2012 9:29 am
by nynaevelan » Thu Dec 03, 2009 5:41 pm
by Bex » Thu Dec 03, 2009 3:49 pm
by nynaevelan » Wed Dec 02, 2009 5:42 pm
by nynaevelan » Sat Mar 07, 2009 12:07 pm
Bex wrote:Here's the SQL: Code: Select allSELECT ID, Artist, SongTitle, CASE WHEN PlaybackPos <600000 THEN SUBSTR(STRFTIME('%M:%S',0.5+CAST(PlaybackPos AS REAL)/86400000),2) WHEN PlaybackPos <3600000 THEN STRFTIME('%M:%S',0.5+CAST(PlaybackPos AS REAL)/86400000) ELSE SUBSTR(STRFTIME('%H:%M:%S',0.5+CAST(PlaybackPos AS REAL)/86400000),2) END PlaybackPosition FROM Songs WHERE Songs.ID=?
Code: Select all
SELECT ID, Artist, SongTitle, CASE WHEN PlaybackPos <600000 THEN SUBSTR(STRFTIME('%M:%S',0.5+CAST(PlaybackPos AS REAL)/86400000),2) WHEN PlaybackPos <3600000 THEN STRFTIME('%M:%S',0.5+CAST(PlaybackPos AS REAL)/86400000) ELSE SUBSTR(STRFTIME('%H:%M:%S',0.5+CAST(PlaybackPos AS REAL)/86400000),2) END PlaybackPosition FROM Songs WHERE Songs.ID=?
by Bex » Sat Mar 07, 2009 12:01 pm
by nynaevelan » Sat Mar 07, 2009 10:28 am
by Bex » Fri Dec 12, 2008 11:34 pm
by MoDementia » Sat Sep 27, 2008 6:02 pm
[DebugHelper] Filename=Auto\DebugHelper.vbs Procname=DisplaySongInfo Order=100 DisplayName=Debug Helper Description=Debug Helper Language=VBScript Icon=27 ScriptType=99
by nynaevelan » Sat Sep 27, 2008 5:14 pm
by onenonymous » Sat Sep 27, 2008 5:00 pm
nynaevelan wrote: Is there a quick code you can give me in order to add either info to the scripts.ini file so I can create a button with Onenonymous' Right Click for Scripts script
[DebugHelper-Song] Filename=Auto\DebugHelper.vbs Procname=DisplaySongInfo Order=99 DisplayName=Debug Helper Song Description=Debug Helper Song Language=VBScript ScriptType=99 Icon=27 [DebugHelper-Node] Filename=Auto\DebugHelper.vbs Procname=DisplayNodeInfo Order=99 DisplayName=Debug Helper Node Description=Debug Helper Node Language=VBScript ScriptType=99 Icon=27
by nynaevelan » Sat Sep 27, 2008 4:49 pm
by nynaevelan » Sun Sep 21, 2008 6:05 am
Bex wrote:Oops... Replace the previous code with this one: Code: Select allinfo = info & "TrackModified: " & FormatDateTime(DB.OpenSql("SELECT DATETIME(TrackModified+2415018.5) FROM Songs WHERE ID="&list.item(0).ID).StringByIndex(0)) & VbNewline Even if the first one returns a date, it always returns the date from the track with the lowest id in your library. The second one actually returns the date from the selected track.
info = info & "TrackModified: " & FormatDateTime(DB.OpenSql("SELECT DATETIME(TrackModified+2415018.5) FROM Songs WHERE ID="&list.item(0).ID).StringByIndex(0)) & VbNewline
by Bex » Sun Sep 21, 2008 4:53 am
by nynaevelan » Sat Sep 20, 2008 7:24 pm
Bex wrote:Thank you! Good ideas! I'll try to implement them in the next version of the script. @Nyn, In the meantime you can add this line (after e.g. FileModified) to get TrackModified: Code: Select allinfo = info & "TrackModified: " & FormatDateTime(DB.OpenSql("SELECT DATETIME(TrackModified+2415018.5) FROM Songs").StringByIndex(0)) & VbNewline
info = info & "TrackModified: " & FormatDateTime(DB.OpenSql("SELECT DATETIME(TrackModified+2415018.5) FROM Songs").StringByIndex(0)) & VbNewline
Top