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

[Bug] Fix parsing titles that looks like year #1

Open
MythodeaLoL opened this issue Mar 1, 2021 · 9 comments
Open

[Bug] Fix parsing titles that looks like year #1

MythodeaLoL opened this issue Mar 1, 2021 · 9 comments

Comments

@MythodeaLoL
Copy link

Hi @DEADF00D thank you for porting this code to php. 😎

You can fix some issues here, with this update?
dchevell/parse-torrent-name@bf96472

I tryed but no success.

@DEADF00D
Copy link
Owner

DEADF00D commented Mar 1, 2021

Sure, i'll take a look tonight. Thanks for using my code.

@MythodeaLoL
Copy link
Author

This another project seems to be a more updated than dchevell.
https://github.com/platelminto/parse-torrent-title/tree/dev

Sorry I can't help, my skills in python -> php are very limited.

DEADF00D added a commit that referenced this issue Mar 2, 2021
@DEADF00D
Copy link
Owner

DEADF00D commented Mar 2, 2021

Alright, I think i fixed the issue.
It's not 100% python to PHP translation.
But works well.

You can try it there:
https://github.com/DEADF00D/parse-torrent-name-php/tree/fix-parsing-titles-that-looks-like-year

Tell me if it solve your problem.

@DEADF00D
Copy link
Owner

DEADF00D commented Mar 6, 2021

Hi @FloridaStream, how is it going so far ?
Do you think I can merge it with master ?

@MythodeaLoL
Copy link
Author

sorry for the delay @DEADF00D , unfortunately I opted for the hybrid use of the python + php script because it is more optimized and updated, sorry. I couldn't test it because I had already implemented the other one in my code in the meantime.

@DEADF00D
Copy link
Owner

DEADF00D commented Mar 8, 2021

No problem. Hope everything run well.

@MythodeaLoL
Copy link
Author

Hi @FloridaStream, how is it going so far ? Do you think I can merge it with master ?

No, there are many problems, like year(again), and titles.

Unfortunately no one assumes the project to make it more complete in relation to the others in the python language, anyway it's a great source in php.
Tks bro.

@MythodeaLoL MythodeaLoL reopened this Jan 7, 2022
@DEADF00D
Copy link
Owner

DEADF00D commented Jan 7, 2022

@MythodeaLoL can you provide some filename examples, so I can try and debug it ?

@MythodeaLoL
Copy link
Author

MythodeaLoL commented Jan 7, 2022

sure @DEADF00D

$filenames = [
    "The.Mandalorian.S01E05.INTERNAL.1080p.WEB.h264-SKGTV DUAL-THR.mkv",
    "The Walking Dead S05E03 720p HDTV x264-ASAP[ettv]",
    "Hercules (2014) 1080p BrRip H264 - YIFY",
    "Dawn.of.the.Planet.of.the.Apes.2014.HDRip.XViD-EVO",
    "The Big Bang Theory S08E06 HDTV XviD-LOL [eztv]",
    "22 Jump Street (2014) 720p BrRip x264 - YIFY",
    "Hercules.2014.EXTENDED.1080p.WEB-DL.DD5.1.H264-RARBG",
    "Hercules.2014.Extended.Cut.HDRip.XViD-juggs[ETRG]",
    "Hercules (2014) WEBDL DVDRip XviD-MAX",
    "WWE Hell in a Cell 2014 PPV WEB-DL x264-WD -={SPARROW}=-",
    "UFC.179.PPV.HDTV.x264-Ebi[rartv]",
    "Marvels Agents of S H I E L D S02E05 HDTV x264-KILLERS [eztv]",
    "X-Men.Days.of.Future.Past.2014.1080p.WEB-DL.DD5.1.H264-RARBG",
    "Guardians Of The Galaxy 2014 R6 720p HDCAM x264-JYK",
    "Marvel's.Agents.of.S.H.I.E.L.D.S02E01.Shadows.1080p.WEB-DL.DD5.1",
    "Marvels Agents of S.H.I.E.L.D. S02E06 HDTV x264-KILLERS[ettv]",
    "Guardians of the Galaxy (CamRip / 2014)",
    "The.Walking.Dead.S05E03.1080p.WEB-DL.DD5.1.H.264-Cyphanix[rartv]",
    "Brave.2012.R5.DVDRip.XViD.LiNE-UNiQUE",
    "Lets.Be.Cops.2014.BRRip.XViD-juggs[ETRG]",
    "These.Final.Hours.2013.WBBRip XViD",
    "Downton Abbey 5x06 HDTV x264-FoV [eztv]",
    "Annabelle.2014.HC.HDRip.XViD.AC3-juggs[ETRG]",
    "Lucy.2014.HC.HDRip.XViD-juggs[ETRG]",
    "The Flash 2014 S01E04 HDTV x264-FUM[ettv]",
    "South Park S18E05 HDTV x264-KILLERS [eztv]",
    "The Flash 2014 S01E03 HDTV x264-LOL[ettv]",
    "The Flash 2014 S01E01 HDTV x264-LOL[ettv]",
    "Lucy 2014 Dual-Audio WEBRip 1400Mb",
    "Teenage Mutant Ninja Turtles (HdRip / 2014)",
    "Teenage Mutant Ninja Turtles (unknown_release_type / 2014)",
    "The Simpsons S26E05 HDTV x264 PROPER-LOL [eztv]",
    "2047 - Sights of Death (2014) 720p BrRip x264 - YIFY",
    "Two and a Half Men S12E01 HDTV x264 REPACK-LOL [eztv]",
    "Dinosaur 13 2014 WEBrip XviD AC3 MiLLENiUM",
    "Teenage.Mutant.Ninja.Turtles.2014.HDRip.XviD.MP3-RARBG",
    "Dawn.Of.The.Planet.of.The.Apes.2014.1080p.WEB-DL.DD51.H264-RARBG",
    "Teenage.Mutant.Ninja.Turtles.2014.720p.HDRip.x264.AC3.5.1-RARBG",
    "Gotham.S01E05.Viper.WEB-DL.x264.AAC",
    "Into.The.Storm.2014.1080p.WEB-DL.AAC2.0.H264-RARBG",
    "Lucy 2014 Dual-Audio 720p WEBRip",
    "Into The Storm 2014 1080p BRRip x264 DTS-JYK",
    "Sin.City.A.Dame.to.Kill.For.2014.1080p.BluRay.x264-SPARKS",
    "WWE Monday Night Raw 3rd Nov 2014 HDTV x264-Sir Paul",
    "Jack.And.The.Cuckoo-Clock.Heart.2013.BRRip XViD",
    "WWE Hell in a Cell 2014 HDTV x264 SNHD",
    "Dracula.Untold.2014.TS.XViD.AC3.MrSeeN-SiMPLE",
    "The Missing 1x01 Pilot HDTV x264-FoV [eztv]",
    "Doctor.Who.2005.8x11.Dark.Water.720p.HDTV.x264-FoV[rartv]",
    "Gotham.S01E07.Penguins.Umbrella.WEB-DL.x264.AAC",
    "One Shot [2014] DVDRip XViD-ViCKY",
    "The Shaukeens 2014 Hindi (1CD) DvDScr x264 AAC...Hon3y",
    "The Shaukeens (2014) 1CD DvDScr Rip x264 [DDR]",
    "Annabelle.2014.1080p.PROPER.HC.WEBRip.x264.AAC.2.0-RARBG",
    "Interstellar (2014) CAM ENG x264 AAC-CPG",
    "Guardians of the Galaxy (2014) Dual Audio DVDRip AVI",
    "Eliza Graves (2014) Dual Audio WEB-DL 720p MKV x264",
    "WWE Monday Night Raw 2014 11 10 WS PDTV x264-RKOFAN1990 -={SPARR",
    "Sons.of.Anarchy.S01E03",
    "doctor_who_2005.8x12.death_in_heaven.720p_hdtv_x264-fov",
    "breaking.bad.s01e01.720p.bluray.x264-reward",
    "Game of Thrones - 4x03 - Breaker of Chains",
    "[720pMkv.Com]_sons.of.anarchy.s05e10.480p.BluRay.x264-GAnGSteR",
    "[ www.Speed.cd ] -Sons.of.Anarchy.S07E07.720p.HDTV.X264-DIMENSION",
    "Community.s02e20.rus.eng.720p.Kybik.v.Kybe",
    "The.Jungle.Book.2016.3D.1080p.BRRip.SBS.x264.AAC-ETRG",
    "Ant-Man.2015.3D.1080p.BRRip.Half-SBS.x264.AAC-m2g",
    "Ice.Age.Collision.Course.2016.READNFO.720p.HDRIP.X264.AC3.TiTAN",
    "Red.Sonja.Queen.Of.Plagues.2016.BDRip.x264-W4F[PRiME]",
    "The Purge: Election Year (2016) HC - 720p HDRiP - 900MB - ShAaNi",
    "War Dogs (2016) HDTS 600MB - NBY",
    "The Hateful Eight (2015) 720p BluRay - x265 HEVC - 999MB - ShAaN",
    "The.Boss.2016.UNRATED.720p.BRRip.x264.AAC-ETRG",
    "Return.To.Snowy.River.1988.iNTERNAL.DVDRip.x264-W4F[PRiME]",
    "Akira (2016) - UpScaled - 720p - DesiSCR-Rip - Hindi - x264 - AC3 - 5.1 - Mafiaking - M2Tv",
    "Ben Hur 2016 TELESYNC x264 AC3 MAXPRO",
    "The.Secret.Life.of.Pets.2016.HDRiP.AAC-LC.x264-LEGi0N",
    "Onward (2020) [1080p] [WEBRip] [5.1] [YTS.MX]",
    "2001: A Space Odyssey (1968) [BluRay] [1080p] [YTS.AM]",
    "2012.2009.BluRay.1080p.x264.YIFY.mp4",
    "Chiquititas 2013 S01E03_1080p_BluRay_FLAC_2.0_x264-AM",
    "breaking.bad.2008.s01e01.720p.bluray.x264-reward",
  ];

https://github.com/platelminto/parse-torrent-title can handle everything perfectly, for me it's difficult to port the code to php, otherwise I would have suggested a pull.

i'm using with imdb to index the content. now using php to call python.

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