question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Series plugin unable to parse episode sequence numbers over 3 digits in length

See original GitHub issue

Expected behaviour:

Flexget series plugin should be able to parse an episode number with over 3 digits in length

Actual behaviour:

The following error occurs and the episode is not recognised as being a part of the series:

2021-11-23 00:04:51 INFO parser_internal nyaa.si - judas Title [Judas] One Piece - 1000 [1080p][HEVC x265 10bit][Multi-Subs] (Weekly) looks like series One Piece but cannot find any series numbering.

Steps to reproduce:

  • Have config which references a series entry that has over 999 episodes from RSS
  • Run flexget (I personally run in daemon mode, but probably not relevant)
  • Episode not recognised

Config:

flexget_config.txt

Log:

(click to expand)
2021-11-23 00:04:51 INFO     parser_internal nyaa.si - judas Title `[Judas] One Piece - 1000 [1080p][HEVC x265 10bit][Multi-Subs] (Weekly)` looks like series `One Piece` but cannot find any series numbering.

Let me know if you want the entire log. None of the log seems interesting.

Additional information:

  • FlexGet version:
3.1.153
You are on the latest release.
  • Python version: Python 2.7.18
  • Installation method: Of flexget? Via pip
  • Using daemon (yes/no): Yes
  • OS and version:
Linux wilko-server 5.4.0-89-generic #100-Ubuntu SMP Fri Sep 24 14:50:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal
  • Link to crash log: N/A

Is the problem line here: https://github.com/Flexget/Flexget/blob/develop/flexget/components/series/next_series_episodes.py#L46

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
BrutuZcommented, Nov 26, 2021

You could solve for these exceptions directly in the config with https://flexget.com/Plugins/series/regexps#episode-numbering-matching

series:
  settings:
    sequence_regexp:
      - (1\d{1,3})
1reaction
stranger-danger-zamucommented, Dec 28, 2021

No need to specify a maximum number sequence length. Using jasonlyle88’s contribution as a base:

series:
  settings:
    sequence_regexp:
      - \b(\d{1,})(?!p)\b

The regex above should match sequence lengths if they are at least one digit long.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Parser · Issue #457 · Sonarr/Sonarr - GitHub
Since sonarr knows the episode title is it possible to parse on episode title as well? iTunes always adds the exact episode number...
Read more >
Unable to parse configuration of mojo org.springframework ...
It looks like you're using inconsistent versions of Spring Boot and Spring Framework. I suggest getting more of your dependencies from ...
Read more >
Unable to Parse! - Writer's Portal Bug - Episode Forums
“Unable to parse! Backup your script. If you chapter is 8k+ lines it may be too large to save. Try reducing the length...
Read more >
mudder - npm
Mudder.js. Generate lexicographically-spaced strings between two strings from pre-defined alphabets. The name came to me while I was writing ...
Read more >
Testing Guide - OWASP Foundation
The Open Web Application Security Project (OWASP) is a worldwide free and open com- munity focused on improving the security of application software....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found