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

[BUG] trakts init error | malformed regex: 'https://www.youtube.com/watch?*' #302

Open
ang3lo-azevedo opened this issue Jun 9, 2024 · 1 comment
Labels
setup Trouble with installation

Comments

@ang3lo-azevedo
Copy link

Describe the bug

Error on trakts init

Desktop (please complete the following information):

  • OS and Version: Arch 6.9.3-arch1-1
  • Python Version: Python 3.12.3

To Reproduce

Steps to reproduce the behavior:

  1. Install
  2. Write the 'trakts init' command

This will guide you through the setup of the scrobbler.
If you wish to quit at any point, press Ctrl+C or Cmd+C

ConfigValueError

fileinfo.exclude_patterns#0: malformed regex: 'https://www.youtube.com/watch?*'. Error: multiple repeat at position 30

at .local/share/pipx/venvs/trakt-scrobbler/lib/python3.12/site-packages/confuse/templates.py:87 in fail
83│ """
84│ exc_class = (
85│ exceptions.ConfigTypeError if type_error
86│ else exceptions.ConfigValueError)
→ 87│ raise exc_class(u'{0}: {1}'.format(view.name, message))
88│
89│ def repr(self):
90│ return '{0}({1})'.format(
91│ type(self).name,

@iamkroot
Copy link
Owner

Any particular reason you've added youtube to exclude_patterns? You'd only need to exclude something if there's a more general rule present in the whitelist (for example, if you wanted to allow all videos from https://my.cool.site.example.org/ EXCEPT the ones from https://my.cool.site.example.org/secret-stuff/ - you'd put the first one in whitelist and the second one in exclude). It doesn't make sense to exclude the entirety of youtube - you needn't put it in the whitelist in the first place.

To edit this, you would have to edit the trakt config file (see https://github.com/iamkroot/trakt-scrobbler/wiki/FAQs#where-is-the-log-fileother-data-stored) and remove the part from fileinfo.exclude_patterns

@iamkroot iamkroot added the setup Trouble with installation label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
setup Trouble with installation
Projects
None yet
Development

No branches or pull requests

2 participants