Skip to content

Is it possible to override the best guess when automating? #121

Answered by jkwill87
EmptyJay asked this question in Questions
Discussion options

You must be logged in to vote

The problem here is that guessit, which mnamer uses to parse metadata from file names, seems to be under the impression that 911 is part of the episode information and strips it out from the series name:

$ python -m guessit .\demo\911.lone.star.s01e01.mp4
For: .\demo\911.lone.star.s01e01.mp4
GuessIt found: {
    "absolute_episode": 911,
    "title": "lone star",
    "season": 1,
    "episode": 1,
    "container": "mp4",
    "mimetype": "video/mp4",
    "type": "episode"
}

Its kind of hacky but we can add it back using the replace_before config setting which replaces metadata before it gets passed to TvMaze:

    // ...
    "replace_before": {
        "Lone Star": "911 Lone Star"
    },
    

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EmptyJay
Comment options

Answer selected by EmptyJay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants