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

Many regex changes #97

Open
Kilokongo opened this issue Jul 3, 2021 · 1 comment
Open

Many regex changes #97

Kilokongo opened this issue Jul 3, 2021 · 1 comment

Comments

@Kilokongo
Copy link

Many things have changed in the torrent world in the last 7 years. I ran into issue #96 and applied ManuelOverdijk's regex patch but then I saw that the parsing had many more shortcomings. I work with RARBG formatted torrents only so YMMV. I am no regex ninja but here are the changes I've made to the patterns in parts/common,js:

Modified:
// ManuelOverdijk's modif
year: /([[(]?((?:19[0-9]|20[0123])[0-9])[])]?)/,
// switched WEB and WEBRip
// watch it, long ass line
quality: /(?:PPV.)?[HP]DTV|(?:HD)?CAM|B[rR]Rip|WEBRip|WEB|TS|(?:PPV )?WEB-?DL(?: DVDRip)?|H[dD]Rip|DVDRip|DVDRiP|DVDRIP|CamRip|W[EB]B[rR]ip|[Bb]lu[Rr]ay|DvDScr|hdtv/,
// added x265
codec: /xvid|x264|x265|h.?264/i,
// added DD2.0
audio: /MP3|DD5.?1|DD2.?0|Dual[- ]Audio|LiNE|DTS|AAC(?:.?2.0)?|FLAC(?:.?2.0)?|AC3(?:.5.1)?/,
language: /rus.eng|FRENCH|RUSSIAN|SPANISH|JAPANESE|ENGLISH|KOREAN|PORTUGUESE|SWEDISH|VIETNAMESE|FINNISH|GERMAN|CHINESE|DANISH|ITALIAN/,

Added:
// CRITERION is not really a platform but I don't feel like adding a new field
platform: /DSNP|AMZN|NF|HMAX|CRITERION/,
// probably missing many languages sub
sub: /ENGSUB/,

Hope this helps someone.

@angelxmoreno
Copy link

@Kilokongo do you still use this package? Did you find an alternative?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants