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

Add support for other language torrents #64

Open
mhdzumair opened this issue Feb 16, 2024 · 4 comments · May be fixed by #66
Open

Add support for other language torrents #64

mhdzumair opened this issue Feb 16, 2024 · 4 comments · May be fixed by #66

Comments

@mhdzumair
Copy link
Contributor

Description

I would like to add the support for other languages like Chinese, Arabic, Russian etc to parse the data. I found Node.js library which did more heavy lifting, we can utilize the code from https://github.com/TheBeastLT/parse-torrent-title

@platelminto apart from this, Any design decision for making this library support to other language? I'm looking forward to adding support to other language but haven't thought of any plan yet.

Originally posted by @mhdzumair in #63 (comment)

@platelminto
Copy link
Owner

Ahh got it, though I'm unsure what exactly needs to change for this - do you have some example torrent names that don't currently work?

@mhdzumair
Copy link
Contributor Author

For the moment, i have the following example:

"杀手之王 [港版原盘/国粤双语中字].Hitman.1998.1080p.HKG.Blu-ray.AVC.TrueHD.7.1-TAG"
Parser title from this library.
image

This is from above nodejs library parser
image

I will add more samples down the road.

@mhdzumair
Copy link
Contributor Author

Another example:

"[www.arabp2p.net]_-_تركي مترجم ومدبلج Last.Call.for.Istanbul.2023.1080p.NF.WEB-DL.DDP5.1.H.264.MKV.torrent"
In [6]: PTN.parse("[www.arabp2p.net]_-_تركي مترجم ومدبلج Last.Call.for.Istanbul.2023.1080p.NF.WEB-DL.DDP
   ...: 5.1.H.264.MKV.torrent")
Out[6]: 
{'resolution': '1080p',
 'quality': 'WEB-DL',
 'year': 2023,
 'codec': 'H.264',
 'audio': 'Dolby Digital Plus 5.1',
 'filetype': 'MKV',
 'site': 'www.arabp2p.net',
 'network': 'Netflix',
 'title': 'تركي مترجم ومدبلج Last.Call.for.Istanbul.',
 'encoder': 'torrent'}
> ptt.parse("[www.arabp2p.net]_-_تركي مترجم ومدبلج Last.Call.for.Istanbul.2023.1080p.NF.WEB-DL.DDP5.1.H.264.MKV.torrent")
{
  resolution: '1080p',
  year: 2023,
  source: 'WEB-DL',
  codec: 'h264',
  container: 'mkv',
  group: 'www.arabp2p.net',
  title: 'Last.Call.for.Istanbul.'
}

@mhdzumair
Copy link
Contributor Author

Any plan to tackle this? Need your suggestion, So I can work on implementation.

mhdzumair added a commit to mhdzumair/parse-torrent-title that referenced this issue May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants