po5 / mpv_sponsorblock

mpv script to skip sponsored segments of YouTube videos
GNU General Public License v3.0
546 stars 29 forks source link

Errors shown in Command Line - red text #8

Closed hl2guide closed 4 years ago

hl2guide commented 4 years ago

I'm using the latest version of this repo.

First Run (no sponsorblock.db file):

first run

Second Run (sponsorblock.db file exists):

second run

Files:

list

Could you advise about the line: Cannot find main.* .... ?

po5 commented 4 years ago

mpv 0.33.0 changed the way scripts are loaded.

I've pushed a backwards compatible fix 958905d, please tell me if that works for you.
To upgrade, remove the existing sponsorblock.lua and the shared folder.

hl2guide commented 4 years ago

Thanks @po5

The main.* error seems fixed.

Please consider handling the first run exception for no sponsorblock.db existing yet.

First Run Currently:

C:\Users\Dean>mpv "https://www.youtube.com/watch?v=fYOeXytMwoM" (+) Video --vid=1 () (h264 1920x1080 29.970fps) (+) Audio --aid=1 --alang=eng () (opus 2ch 48000Hz) AO: [wasapi] 44100Hz stereo 2ch float VO: [gpu] 1920x1080 yuv420p AV: 00:00:01 / 00:33:06 (0%) A-V: 0.000 Cache: 14s/3MB [sponsorblock] Traceback (most recent call last): [sponsorblock] File "C:/Portable Software/PortableApps/PortableApps/MPV Video Player/scripts/sponsorblock/shared/sponsorblock.py", line 45, in [sponsorblock] c.execute("SELECT startTime, endTime, votes, UUID FROM sponsorTimes WHERE videoID = ? AND shadowHidden = 0 AND votes > -1", (sys.argv[4],)) [sponsorblock] sqlite3.OperationalError: no such table: sponsorTimes

First Run Suggestion:

C:\Users\Dean>mpv "https://www.youtube.com/watch?v=fYOeXytMwoM" (+) Video --vid=1 () (h264 1920x1080 29.970fps) (+) Audio --aid=1 --alang=eng () (opus 2ch 48000Hz) AO: [wasapi] 44100Hz stereo 2ch float VO: [gpu] 1920x1080 yuv420p AV: 00:00:01 / 00:33:06 (0%) A-V: 0.000 Cache: 14s/3MB [sponsorblock] Trying to download sponsorblock.db (around 33MB)