xbmc / xbmc/metadata.themoviedb.org.python

Problem scraping file with { and } in filename

Open
#227 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
HTML
Stars
60
Forks
50
Avg merge
11h 38m
Merged PRs (30d)
1

Description

Scraping a filename like this Blade.Trinity.2004.{edition-Unrated}.1080p.mkv, will result in a movie in the library without any information (actors, description etc).

Removing those two specific characters "{" and "}" from the filename, it works as expected with a fully populated movie in the library.

I'm guessing it's because "{" and "}" are used for special identifiers as per https://kodi.wiki/view/Add-on:The_Movie_Database_Python#Filename_identifiers

System information:
LibreELEC 12.0.1
Kodi 21-1-Omega
The Movie Database Python 3.0.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the scrape with Blade.Trinity.2004.{edition-Unrated}.1080p.mkv, then inspect the add-on's filename-identifier handling. No source file or test is named in the issue. Done means the filename is scraped into a fully populated movie entry, including actors and description, without removing the braces.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.