Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find the cause of sponsorblock_categories becoming empty #668

Closed
tcely opened this issue Jan 31, 2025 · 1 comment · Fixed by #680
Closed

Find the cause of sponsorblock_categories becoming empty #668

tcely opened this issue Jan 31, 2025 · 1 comment · Fixed by #680

Comments

@tcely
Copy link
Contributor

tcely commented Jan 31, 2025

I have confirmed that my settings are present in the database table immediately after I save the source.

sqlite> .headers on
sqlite> .mode line
sqlite> SELECT name, "sponsorblock_categories" FROM sync_source WHERE "enable_sponsorblock" ;
                       name = Reporting from Ukraine
    sponsorblock_categories = sponsor,outro,selfpromo,interaction
sqlite> 

However, at some later point they have been set to a blank string.

After refreshing the source, the categories are empty.

These tasks show up in completed tasks:

  • Index media from source "Reporting from Ukraine" once
  • Checking all media for source "Reporting from Ukraine"
  • Renaming all media for source "Reporting from Ukraine"

I have narrowed it down to calling save() on the Source instance.

>>> source.refresh_from_db()
>>> source.sponsorblock_categories.selected_choices
['sponsor', 'outro', 'selfpromo', 'interaction']
>>> source.save()
>>> source.sponsorblock_categories.selected_choices
['sponsor', 'outro', 'selfpromo', 'interaction']
>>> source.refresh_from_db()
>>> source.sponsorblock_categories.selected_choices
[]
>>> 

See also:

Closes #362

@tcely
Copy link
Contributor Author

tcely commented Feb 2, 2025

@meeb Please review #680, as I think it fixes the problem points.

@meeb meeb closed this as completed in #680 Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant