-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_test.go
More file actions
577 lines (572 loc) · 57.6 KB
/
main_test.go
File metadata and controls
577 lines (572 loc) · 57.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
package ptt
import (
"testing"
)
func TestRandomReleasesParse(t *testing.T) {
cases := []struct {
releaseName string
expectedOutput map[string]any
}{
{
releaseName: "sons.of.anarchy.s05e10.480p.BluRay.x264-GAnGSteR",
expectedOutput: map[string]any{"title": "sons of anarchy", "resolution": "480p", "seasons": []int{5}, "episodes": []int{10}, "quality": "BluRay", "codec": "avc", "group": "GAnGSteR", "languages": []string{}},
},
{
releaseName: "Color.Of.Night.Unrated.DC.VostFR.BRrip.x264",
expectedOutput: map[string]any{"title": "Color Of Night", "unrated": true, "languages": []string{"fr"}, "quality": "BRRip", "codec": "avc", "seasons": []int{}, "episodes": []int{}},
},
{
releaseName: "Da Vinci Code DVDRip",
expectedOutput: map[string]any{"title": "Da Vinci Code", "quality": "DVDRip", "languages": []string{}, "seasons": []int{}, "episodes": []int{}},
},
{
releaseName: "Some.girls.1998.DVDRip",
expectedOutput: map[string]any{"title": "Some girls", "quality": "DVDRip", "year": 1998, "languages": []string{}, "seasons": []int{}, "episodes": []int{}},
},
{
releaseName: "Ecrit.Dans.Le.Ciel.1954.MULTI.DVDRIP.x264.AC3-gismo65",
expectedOutput: map[string]any{"title": "Ecrit Dans Le Ciel", "quality": "DVDRip", "year": 1954, "languages": []string{}, "dubbed": true, "codec": "avc", "audio": []string{"Dolby Digital"}, "group": "gismo65", "seasons": []int{}, "episodes": []int{}},
},
{
releaseName: "2019 After The Fall Of New York 1983 REMASTERED BDRip x264-GHOULS",
expectedOutput: map[string]any{"title": "2019 After The Fall Of New York", "quality": "BDRip", "edition": "Remastered", "year": 1983, "codec": "avc", "group": "GHOULS", "languages": []string{}, "seasons": []int{}, "episodes": []int{}},
},
{
releaseName: "Ghost In The Shell 2017 720p HC HDRip X264 AC3-EVO",
expectedOutput: map[string]any{"title": "Ghost In The Shell", "quality": "HDRip", "hardcoded": true, "year": 2017, "resolution": "720p", "codec": "avc", "audio": []string{"Dolby Digital"}, "group": "EVO", "languages": []string{}, "seasons": []int{}, "episodes": []int{}},
},
{
releaseName: "Rogue One 2016 1080p BluRay x264-SPARKS",
expectedOutput: map[string]any{"title": "Rogue One", "quality": "BluRay", "year": 2016, "resolution": "1080p", "codec": "avc", "group": "SPARKS", "languages": []string{}, "seasons": []int{}, "episodes": []int{}},
},
{
releaseName: "Desperation 2006 Multi Pal DvdR9-TBW1973",
expectedOutput: map[string]any{"title": "Desperation", "quality": "DVD", "year": 2006, "languages": []string{}, "dubbed": true, "region": "R9", "group": "TBW1973", "seasons": []int{}, "episodes": []int{}},
},
{
releaseName: "Maman, j'ai raté l'avion 1990 VFI 1080p BluRay DTS x265-HTG",
expectedOutput: map[string]any{"title": "Maman, j'ai raté l'avion", "quality": "BluRay", "year": 1990, "audio": []string{"DTS Lossy"}, "resolution": "1080p", "languages": []string{"fr"}, "codec": "hevc", "group": "HTG", "seasons": []int{}, "episodes": []int{}},
},
{
releaseName: "Game of Thrones - The Complete Season 3 [HDTV]",
expectedOutput: map[string]any{"title": "Game of Thrones", "seasons": []int{3}, "quality": "HDTV", "languages": []string{}, "episodes": []int{}},
},
{
releaseName: "The Sopranos: The Complete Series (Season 1,2,3,4,5&6) + Extras",
expectedOutput: map[string]any{"title": "The Sopranos", "seasons": []int{1, 2, 3, 4, 5, 6}, "complete": true, "languages": []string{}, "episodes": []int{}},
},
{
releaseName: "Skins Season S01-S07 COMPLETE UK Soundtrack 720p WEB-DL",
expectedOutput: map[string]any{"seasons": []int{1, 2, 3, 4, 5, 6, 7}, "title": "Skins", "country": "UK", "resolution": "720p", "quality": "WEB-DL", "languages": []string{}, "episodes": []int{}, "complete": true},
},
{
releaseName: "Futurama.COMPLETE.S01-S07.720p.BluRay.x265-HETeam",
expectedOutput: map[string]any{"title": "Futurama", "seasons": []int{1, 2, 3, 4, 5, 6, 7}, "resolution": "720p", "quality": "BluRay", "codec": "hevc", "group": "HETeam", "languages": []string{}, "episodes": []int{}, "complete": true},
},
{
releaseName: "You.[Uncut].S01.SweSub.1080p.x264-Justiso",
expectedOutput: map[string]any{"title": "You", "edition": "Uncut", "seasons": []int{1}, "languages": []string{"sv"}, "resolution": "1080p", "codec": "avc", "group": "Justiso", "episodes": []int{}},
},
{
releaseName: "Stephen Colbert 2019 10 25 Eddie Murphy 480p x264-mSD [eztv]",
expectedOutput: map[string]any{"title": "Stephen Colbert", "date": "2019-10-25", "resolution": "480p", "codec": "avc", "languages": []string{}, "seasons": []int{}, "episodes": []int{}},
},
{
releaseName: "House MD Season 7 Complete MKV",
expectedOutput: map[string]any{"title": "House MD", "seasons": []int{7}, "container": "mkv", "languages": []string{}, "episodes": []int{}, "complete": true},
},
{
releaseName: "2008 The Incredible Hulk Feature Film.mp4",
expectedOutput: map[string]any{"title": "The Incredible Hulk Feature Film", "year": 2008, "container": "mp4", "extension": "mp4", "languages": []string{}, "seasons": []int{}, "episodes": []int{}},
},
{
releaseName: "【4月/悠哈璃羽字幕社】[UHA-WINGS][不要输!恶之军团][Makeruna!! Aku no Gundan!][04][1080p AVC_AAC][简繁外挂][sc_tc]",
expectedOutput: map[string]any{"title": "Makeruna!! Aku no Gundan!", "episodes": []int{4}, "resolution": "1080p", "codec": "avc", "audio": []string{"AAC"}, "languages": []string{"zh"}, "seasons": []int{}, "trash": true},
},
{
releaseName: "[GM-Team][国漫][西行纪之集结篇][The Westward Ⅱ][2019][17][AVC][GB][1080P]",
expectedOutput: map[string]any{"title": "The Westward Ⅱ", "year": 2019, "episodes": []int{17}, "resolution": "1080p", "codec": "avc", "group": "GM-Team", "languages": []string{"zh"}, "seasons": []int{}},
},
{
releaseName: "Черное зеркало / Black Mirror / Сезон 4 / Серии 1-6 (6) [2017, США, WEBRip 1080p] MVO + Eng Sub",
expectedOutput: map[string]any{"title": "Black Mirror", "year": 2017, "seasons": []int{4}, "episodes": []int{1, 2, 3, 4, 5, 6}, "languages": []string{"en", "ru"}, "resolution": "1080p", "quality": "WEBRip", "subbed": true},
},
{
releaseName: "[neoHEVC] Student Council's Discretion / Seitokai no Ichizon [Season 1] [BD 1080p x265 HEVC AAC]",
expectedOutput: map[string]any{"title": "Student Council's Discretion / Seitokai no Ichizon", "seasons": []int{1}, "resolution": "1080p", "quality": "BDRip", "audio": []string{"AAC"}, "codec": "hevc", "group": "neoHEVC", "languages": []string{}, "episodes": []int{}},
},
{
releaseName: "[Commie] Chihayafuru 3 - 21 [BD 720p AAC] [5F1911ED].mkv",
expectedOutput: map[string]any{"title": "Chihayafuru 3", "episodes": []int{21}, "resolution": "720p", "quality": "BDRip", "audio": []string{"AAC"}, "container": "mkv", "extension": "mkv", "episode_code": "5F1911ED", "group": "Commie", "languages": []string{}, "seasons": []int{}},
},
{
releaseName: "[DVDRip-ITA]The Fast and the Furious: Tokyo Drift [CR-Bt]",
expectedOutput: map[string]any{"title": "The Fast and the Furious: Tokyo Drift", "quality": "DVDRip", "languages": []string{"it"}, "seasons": []int{}, "episodes": []int{}},
},
{
releaseName: "[BluRay Rip 720p ITA AC3 - ENG AC3 SUB] Hostel[2005]-LIFE[ultimafrontiera]",
expectedOutput: map[string]any{"title": "Hostel", "year": 2005, "resolution": "720p", "quality": "BRRip", "audio": []string{"Dolby Digital"}, "languages": []string{"en", "it"}, "group": "LIFE", "seasons": []int{}, "episodes": []int{}, "subbed": true},
},
{
releaseName: "[OFFICIAL ENG SUB] Soul Land Episode 121-125 [1080p][Soft Sub][Web-DL][Douluo Dalu][斗罗大陆]",
expectedOutput: map[string]any{"title": "Soul Land", "seasons": []int{}, "episodes": []int{121, 122, 123, 124, 125}, "languages": []string{"en", "zh"}, "resolution": "1080p", "quality": "WEB-DL", "subbed": true},
},
{
releaseName: "[720p] The God of Highschool Season 1",
expectedOutput: map[string]any{"title": "The God of Highschool", "seasons": []int{1}, "resolution": "720p", "languages": []string{}, "episodes": []int{}},
},
{
releaseName: "Heidi Audio Latino DVDRip [cap. 3 Al 18]",
expectedOutput: map[string]any{"title": "Heidi", "episodes": []int{3}, "quality": "DVDRip", "languages": []string{"la"}, "seasons": []int{}},
},
{
releaseName: "Anatomia De Grey - Temporada 19 [HDTV][Castellano][www.AtomoHD.nu].avi",
expectedOutput: map[string]any{"title": "Anatomia De Grey", "seasons": []int{19}, "episodes": []int{}, "container": "avi", "extension": "avi", "languages": []string{"es"}, "quality": "HDTV", "site": "www.AtomoHD.nu"},
},
{
releaseName: "Sprint.2024.S01.COMPLETE.1080p.WEB.h264-EDITH[TGx]",
expectedOutput: map[string]any{"title": "Sprint", "year": 2024, "seasons": []int{1}, "episodes": []int{}, "languages": []string{}, "quality": "WEB", "resolution": "1080p", "scene": true, "codec": "avc", "group": "EDITH", "complete": true},
},
{
releaseName: "Madame Web 2024 UHD BluRay 2160p TrueHD Atmos 7 1 DV HEVC REMUX-FraMeSToR",
expectedOutput: map[string]any{"title": "Madame Web", "year": 2024, "quality": "BluRay REMUX", "resolution": "2160p", "channels": []string{"7.1"}, "audio": []string{"Atmos", "TrueHD"}, "codec": "hevc", "languages": []string{}, "seasons": []int{}, "episodes": []int{}, "hdr": []string{"DV"}, "group": "FraMeSToR"},
},
{
releaseName: "The.Witcher.US.S01.INTERNAL.1080p.WEB.x264-STRiFE",
expectedOutput: map[string]any{"title": "The Witcher", "seasons": []int{1}, "episodes": []int{}, "languages": []string{}, "country": "US", "quality": "WEB", "resolution": "1080p", "scene": true, "codec": "avc", "group": "STRiFE"},
},
{
releaseName: "Madame Web (2024) 1080p HINDI ENGLISH 10bit AMZN WEBRip DDP5 1 x265 HEVC - PSA Shadow",
expectedOutput: map[string]any{"title": "Madame Web", "year": 2024, "languages": []string{"en", "hi"}, "quality": "WEBRip", "resolution": "1080p", "bit_depth": "10bit", "audio": []string{"Dolby Digital Plus"}, "channels": []string{"5.1"}, "codec": "hevc", "seasons": []int{}, "episodes": []int{}, "network": "Amazon"},
},
{
releaseName: "The Simpsons S01E01 1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole",
expectedOutput: map[string]any{"title": "The Simpsons", "seasons": []int{1}, "episodes": []int{1}, "languages": []string{}, "resolution": "1080p", "quality": "BluRay", "codec": "hevc", "bit_depth": "10bit", "audio": []string{"AAC"}, "channels": []string{"5.1"}},
},
{
releaseName: "[DB]_Bleach_264_[012073FE].avi",
expectedOutput: map[string]any{"title": "Bleach", "container": "avi", "extension": "avi", "episode_code": "012073FE", "seasons": []int{}, "episodes": []int{264}, "languages": []string{}, "group": "DB"},
},
{
releaseName: "[SubsPlease] One Piece - 1111 (480p) [2E05E658].mkv",
expectedOutput: map[string]any{"title": "One Piece", "container": "mkv", "resolution": "480p", "extension": "mkv", "episode_code": "2E05E658", "seasons": []int{}, "episodes": []int{1111}, "languages": []string{}, "group": "SubsPlease"},
},
{
releaseName: "One Piece S01E1056 VOSTFR 1080p WEB x264 AAC -Tsundere-Raws (CR) mkv",
expectedOutput: map[string]any{"title": "One Piece", "seasons": []int{1}, "episodes": []int{1056}, "languages": []string{"fr"}, "container": "mkv", "resolution": "1080p", "scene": true, "quality": "WEB", "codec": "avc", "audio": []string{"AAC"}},
},
{
releaseName: "Mary.Poppins.1964.50th.ANNIVERSARY.EDITION.REMUX.1080p.Bluray.AVC.DTS-HD.MA.5.1-LEGi0N",
expectedOutput: map[string]any{"title": "Mary Poppins", "year": 1964, "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "edition": "Anniversary Edition", "quality": "BluRay REMUX", "resolution": "1080p", "audio": []string{"DTS Lossless"}, "channels": []string{"5.1"}, "codec": "avc", "group": "LEGi0N"},
},
{
releaseName: "The.Lord.of.the.Rings.The.Fellowship.of.the.Ring.2001.EXTENDED.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-BOREDOR",
expectedOutput: map[string]any{"title": "The Lord of the Rings The Fellowship of the Ring", "year": 2001, "resolution": "2160p", "edition": "Extended Edition", "languages": []string{}, "seasons": []int{}, "episodes": []int{}, "quality": "BluRay", "codec": "hevc", "bit_depth": "10bit", "audio": []string{"Atmos", "TrueHD"}, "channels": []string{"7.1"}, "hdr": []string{"HDR"}, "group": "BOREDOR"},
},
{
releaseName: "Escaflowne (2000) (BDRip 1896x1048p x265 HEVC TrueHD, FLACx3, AC3 5.1x2+2.0x3)(Triple Audio)[sxales].mkv",
expectedOutput: map[string]any{"title": "Escaflowne", "year": 2000, "languages": []string{}, "seasons": []int{}, "episodes": []int{}, "quality": "BDRip", "codec": "hevc", "resolution": "1896x1048p", "audio": []string{"TrueHD", "FLAC", "Dolby Digital"}, "channels": []string{"5.1", "2.0"}, "dubbed": true, "container": "mkv", "extension": "mkv"},
},
{
releaseName: "[www.1TamilMV.pics]_The.Great.Indian.Suicide.2023.Tamil.TRUE.WEB-DL.4K.SDR.HEVC.(DD+5.1.384Kbps.&.AAC).3.2GB.ESub.mkv",
expectedOutput: map[string]any{"title": "The Great Indian Suicide", "year": 2023, "languages": []string{"en", "ta"}, "seasons": []int{}, "episodes": []int{}, "quality": "WEB-DL", "resolution": "2160p", "hdr": []string{"SDR"}, "codec": "hevc", "site": "www.1TamilMV.pics", "size": "3.2GB", "container": "mkv", "extension": "mkv", "bitrate": "384kbps", "audio": []string{"TrueHD", "Dolby Digital Plus", "AAC"}, "channels": []string{"5.1"}},
},
{
releaseName: "www.5MovieRulz.show - Khel Khel Mein (2024) 1080p Hindi DVDScr - x264 - AAC - 2.3GB.mkv",
expectedOutput: map[string]any{"title": "Khel Khel Mein", "year": 2024, "languages": []string{"hi"}, "seasons": []int{}, "episodes": []int{}, "quality": "SCR", "codec": "avc", "audio": []string{"AAC"}, "resolution": "1080p", "container": "mkv", "extension": "mkv", "size": "2.3GB", "site": "www.5MovieRulz.show", "trash": true},
},
{
releaseName: "超能警探.Memorist.S01E01.2160p.WEB-DL.H265.AAC-FLTTH.mkv",
expectedOutput: map[string]any{"title": "Memorist", "seasons": []int{1}, "episodes": []int{1}, "languages": []string{"zh"}, "quality": "WEB-DL", "codec": "hevc", "audio": []string{"AAC"}, "resolution": "2160p", "container": "mkv", "extension": "mkv", "group": "FLTTH"},
},
{
releaseName: "Futurama.S08E03.How.the.West.Was.1010001.1080p.HULU.WEB-DL.DDP5.1.H.264-FLUX.mkv",
expectedOutput: map[string]any{"title": "Futurama", "seasons": []int{8}, "episodes": []int{3}, "languages": []string{}, "network": "Hulu", "codec": "avc", "container": "mkv", "extension": "mkv", "audio": []string{"Dolby Digital Plus"}, "channels": []string{"5.1"}, "quality": "WEB-DL", "resolution": "1080p", "group": "FLUX"},
},
{
releaseName: "V.H.S.2 [2013] 1080p BDRip x265 DTS-HD MA 5.1 Kira [SEV].mkv",
expectedOutput: map[string]any{"title": "V H S 2", "year": 2013, "languages": []string{}, "seasons": []int{}, "episodes": []int{}, "quality": "BDRip", "codec": "hevc", "audio": []string{"DTS Lossless"}, "channels": []string{"5.1"}, "container": "mkv", "extension": "mkv", "resolution": "1080p"},
},
{
releaseName: "{WWW.BLUDV.TV} Love, Death & Robots - 1ª Temporada Completa 2019 (1080p) Acesse o ORIGINAL WWW.BLUDV.TV",
expectedOutput: map[string]any{"title": "Love, Death & Robots", "seasons": []int{1}, "episodes": []int{}, "languages": []string{"es"}, "resolution": "1080p", "year": 2019, "complete": true, "site": "WWW.BLUDV.TV", "trash": true},
},
{
releaseName: "www.MovCr.to - Bikram Yogi, Guru, Predator (2019) 720p WEB_DL x264 ESubs [Dual Audio]-[Hindi + Eng] - 950MB - MovCr.mkv",
expectedOutput: map[string]any{"title": "Bikram Yogi, Guru, Predator", "year": 2019, "languages": []string{"en", "hi"}, "quality": "WEB-DL", "resolution": "720p", "codec": "avc", "container": "mkv", "extension": "mkv", "site": "www.MovCr.to", "dubbed": true, "episodes": []int{}, "group": "MovCr", "seasons": []int{}, "size": "950MB"},
},
{
releaseName: "28.days.2000.1080p.bluray.x264-mimic.mkv",
expectedOutput: map[string]any{"title": "28 days", "year": 2000, "resolution": "1080p", "quality": "BluRay", "codec": "avc", "container": "mkv", "extension": "mkv", "group": "mimic", "episodes": []int{}, "languages": []string{}, "seasons": []int{}},
},
{
releaseName: "4.20.Massacre.2018.1080p.BluRay.x264.AAC-[YTS.MX].mp4",
expectedOutput: map[string]any{"title": "4 20 Massacre", "year": 2018, "resolution": "1080p", "quality": "BluRay", "codec": "avc", "audio": []string{"AAC"}, "container": "mp4", "extension": "mp4", "languages": []string{}, "episodes": []int{}, "seasons": []int{}, "site": "YTS.MX"},
},
{
releaseName: "inside.out.2.2024.d.ru.ua.ts.1o8op.mkv",
expectedOutput: map[string]any{"title": "inside out 2", "year": 2024, "quality": "TeleSync", "container": "mkv", "extension": "mkv", "languages": []string{"ru"}, "episodes": []int{}, "seasons": []int{}, "trash": true},
},
{
releaseName: "I.S.S.2023.P.WEB-DL.1O8Op.mkv",
expectedOutput: map[string]any{"title": "I S S", "year": 2023, "quality": "WEB-DL", "container": "mkv", "extension": "mkv", "languages": []string{}, "episodes": []int{}, "seasons": []int{}},
},
{
releaseName: "Skazka.2022.Pa.WEB-DL.1O8Op.mkv",
expectedOutput: map[string]any{"title": "Skazka", "year": 2022, "quality": "WEB-DL", "container": "mkv", "extension": "mkv", "languages": []string{}, "episodes": []int{}, "seasons": []int{}},
},
{
releaseName: "Spider-Man.Across.the.Spider-Verse.2023.Dt.WEBRip.1O8Op.mkv",
expectedOutput: map[string]any{"title": "Spider-Man Across the Spider-Verse", "year": 2023, "quality": "WEBRip", "container": "mkv", "extension": "mkv", "languages": []string{}, "episodes": []int{}, "seasons": []int{}},
},
{
releaseName: "Civil.War.2024.D.WEB-DL.1O8Op.mkv",
expectedOutput: map[string]any{"title": "Civil War", "year": 2024, "quality": "WEB-DL", "container": "mkv", "extension": "mkv", "languages": []string{}, "episodes": []int{}, "seasons": []int{}},
},
{
releaseName: "Dune.Part.Two.2024.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR.H.265-FLUX[TGx]",
expectedOutput: map[string]any{"title": "Dune Part Two", "year": 2024, "resolution": "2160p", "quality": "WEB-DL", "codec": "hevc", "audio": []string{"Atmos", "Dolby Digital Plus"}, "channels": []string{"5.1"}, "group": "FLUX", "episodes": []int{}, "hdr": []string{"DV", "HDR"}, "languages": []string{}, "seasons": []int{}},
},
{
releaseName: "Saw.3D.2010.1080p.ITA-ENG.BluRay.x265.AAC-V3SP4EV3R.mkv",
expectedOutput: map[string]any{"title": "Saw 3D", "year": 2010, "seasons": []int{}, "episodes": []int{}, "languages": []string{"en", "it"}, "resolution": "1080p", "quality": "BluRay", "codec": "hevc", "audio": []string{"AAC"}, "container": "mkv", "extension": "mkv", "group": "V3SP4EV3R"},
},
{
releaseName: "Dead Before Dawn 3D (2012) [3D.BLU-RAY] [1080p 3D] [BluRay] [HSBS] [YTS.MX]",
expectedOutput: map[string]any{"title": "Dead Before Dawn 3D", "year": 2012, "languages": []string{}, "seasons": []int{}, "episodes": []int{}, "resolution": "1080p", "quality": "BluRay", "3d": true, "site": "YTS.MX"},
},
{
releaseName: "Wonder.Woman.1984.2020.3D.1080p.BluRay.x264-SURCODE[rarbg]",
expectedOutput: map[string]any{"title": "Wonder Woman 1984", "year": 2020, "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "resolution": "1080p", "scene": true, "quality": "BluRay", "codec": "avc", "group": "SURCODE", "3d": true, "site": "rarbg"},
},
{
releaseName: "The.Last.of.Us.S01E08.1080p.WEB.H264-CAKES[TGx]",
expectedOutput: map[string]any{"title": "The Last of Us", "seasons": []int{1}, "episodes": []int{8}, "languages": []string{}, "resolution": "1080p", "scene": true, "quality": "WEB", "codec": "avc", "group": "CAKES"},
},
{
releaseName: "The.Office.UK.S01.1080P.BLURAY.REMUX.AVC.DD5.1-NOGRP",
expectedOutput: map[string]any{"title": "The Office", "seasons": []int{1}, "episodes": []int{}, "languages": []string{}, "country": "UK", "quality": "BluRay REMUX", "resolution": "1080p", "audio": []string{"Dolby Digital"}, "channels": []string{"5.1"}, "codec": "avc", "group": "NOGRP"},
},
{
releaseName: "The.Office.US.S01-09.COMPLETE.SERIES.1080P.BLURAY.X265-HIQVE",
expectedOutput: map[string]any{"title": "The Office", "seasons": []int{1, 2, 3, 4, 5, 6, 7, 8, 9}, "episodes": []int{}, "country": "US", "languages": []string{}, "quality": "BluRay", "resolution": "1080p", "codec": "hevc", "complete": true, "group": "HIQVE"},
},
{
releaseName: "Hard Knocks 2001 S23E01 1080p MAX WEB-DL DDP2 0 x264-NTb[EZTVx.to].mkv",
expectedOutput: map[string]any{"title": "Hard Knocks", "year": 2001, "seasons": []int{23}, "episodes": []int{1}, "languages": []string{}, "quality": "WEB-DL", "resolution": "1080p", "codec": "avc", "audio": []string{"Dolby Digital Plus"}, "channels": []string{"2.0"}, "group": "NTb", "extension": "mkv", "container": "mkv", "site": "EZTVx.to"},
},
{
releaseName: "Fallout.S01E03.The.Head.2160p.DV.HDR10Plus.Ai-Enhanced.H265.DDP.5.1.MULTI.RIFE.4.15v2-60fps-DirtyHippie.mkv",
expectedOutput: map[string]any{"title": "Fallout", "seasons": []int{1}, "episodes": []int{3}, "languages": []string{}, "resolution": "2160p", "codec": "hevc", "audio": []string{"Dolby Digital Plus"}, "channels": []string{"5.1"}, "group": "DirtyHippie", "container": "mkv", "dubbed": true, "extension": "mkv", "hdr": []string{"DV", "HDR10+"}, "upscaled": true},
},
{
releaseName: "BoJack Horseman [06x01-08 of 16] (2019-2020) WEB-DLRip 720p",
expectedOutput: map[string]any{"title": "BoJack Horseman", "seasons": []int{6}, "episodes": []int{1, 2, 3, 4, 5, 6, 7, 8}, "languages": []string{}, "resolution": "720p", "quality": "WEB-DLRip", "complete": true},
},
{
releaseName: "Трон: Наследие / TRON: Legacy (2010) WEB-DL 1080p | D | Open Matte",
expectedOutput: map[string]any{"title": "TRON: Legacy", "year": 2010, "seasons": []int{}, "episodes": []int{}, "languages": []string{"ru"}, "resolution": "1080p", "quality": "WEB-DL"},
},
{
releaseName: "Wentworth.S08E06.PDTV.AAC2.0.x264-BTN",
expectedOutput: map[string]any{"title": "Wentworth", "seasons": []int{8}, "episodes": []int{6}, "languages": []string{}, "quality": "PDTV", "codec": "avc", "audio": []string{"AAC"}, "channels": []string{"2.0"}, "group": "BTN"},
},
{
releaseName: "www.1Tamilblasters.co - Guardians of the Galaxy Vol. 3 (2023) [4K IMAX UHD HEVC - BDRip - [Tam + Mal + Tel + Hin + Eng] - x264 - DDP5.1 (192Kbps) - 8.3GB - ESub].mkv",
expectedOutput: map[string]any{"title": "Guardians of the Galaxy Vol. 3", "year": 2023, "seasons": []int{}, "episodes": []int{}, "languages": []string{"en", "hi", "te", "ta", "ml"}, "quality": "BDRip", "codec": "hevc", "audio": []string{"Dolby Digital Plus"}, "channels": []string{"5.1"}, "resolution": "2160p", "container": "mkv", "extension": "mkv", "site": "www.1Tamilblasters.co", "bitrate": "192kbps", "edition": "IMAX", "size": "8.3GB"},
},
{
releaseName: "【高清影视之家发布 www.hdbthd.com】奥本海默 杜比视界版本 高码版 国英多音轨 中文字幕 .oppenheimer.2023.2160p.hq.web-dl.h265.dv.ddp5.1.2audio-dreamhd",
expectedOutput: map[string]any{"title": "高清影视之家发布", "year": 2023, "languages": []string{"zh"}, "quality": "WEB-DL", "codec": "hevc", "audio": []string{"Dolby Digital Plus"}, "channels": []string{"5.1"}, "resolution": "2160p", "site": "www.hdbthd.com", "episodes": []int{}, "group": "dreamhd", "hdr": []string{"DV"}, "seasons": []int{}, "trash": true},
},
{
releaseName: "Venom (2018) HD-TS 720p Hindi Dubbed (Clean Audio) x264",
expectedOutput: map[string]any{"title": "Venom", "year": 2018, "seasons": []int{}, "episodes": []int{}, "languages": []string{"hi"}, "quality": "TeleSync", "resolution": "720p", "codec": "avc", "audio": []string{"HQ Clean Audio"}, "dubbed": true, "trash": true},
},
{
releaseName: "www.Tamilblasters.party - The Wheel of Time (2021) Season 01 EP(01-08) [720p HQ HDRip - [Tam + Tel + Hin] - DDP5.1 - x264 - 2.7GB - ESubs]",
expectedOutput: map[string]any{"title": "The Wheel of Time", "year": 2021, "seasons": []int{1}, "episodes": []int{1, 2, 3, 4, 5, 6, 7, 8}, "languages": []string{"hi", "te", "ta"}, "quality": "HDRip", "resolution": "720p", "codec": "avc", "audio": []string{"Dolby Digital Plus"}, "channels": []string{"5.1"}, "site": "www.Tamilblasters.party", "size": "2.7GB", "trash": true},
},
{
releaseName: "The.Walking.Dead.S06E07.SUBFRENCH.HDTV.x264-AMB3R.mkv",
expectedOutput: map[string]any{"title": "The Walking Dead", "seasons": []int{6}, "episodes": []int{7}, "languages": []string{"fr"}, "quality": "HDTV", "codec": "avc", "group": "AMB3R", "extension": "mkv", "container": "mkv"},
},
{
releaseName: "The Walking Dead S05E03 720p Remux x264-ASAP[ettv]",
expectedOutput: map[string]any{"title": "The Walking Dead", "seasons": []int{5}, "episodes": []int{3}, "languages": []string{}, "quality": "REMUX", "resolution": "720p", "codec": "avc", "group": "ASAP"},
},
{
releaseName: "www.TamilBlasters.vip - Shang-Chi (2021) [720p BDRip - [Tamil + Telugu + Hindi + Eng] - x264 - DDP5.1 (192 Kbps) - 1.4GB - ESubs].mkv",
expectedOutput: map[string]any{"title": "Shang-Chi", "year": 2021, "seasons": []int{}, "episodes": []int{}, "languages": []string{"en", "hi", "te", "ta"}, "quality": "BDRip", "resolution": "720p", "codec": "avc", "audio": []string{"Dolby Digital Plus"}, "channels": []string{"5.1"}, "site": "www.TamilBlasters.vip", "size": "1.4GB", "extension": "mkv", "container": "mkv"},
},
{
releaseName: "Game of Thrones 1ª a 8ª Temporada Completa [720p-1080p] [BluRay] [DUAL]",
expectedOutput: map[string]any{"title": "Game of Thrones", "seasons": []int{1, 2, 3, 4, 5, 6, 7, 8}, "episodes": []int{}, "languages": []string{"es"}, "resolution": "1080p", "quality": "BluRay", "complete": true, "dubbed": true},
},
{
releaseName: "Kill.2024.REPACK.1080p.AMZN.WEB-DL.DDP5.1.Atmos.H.264-XEBEC.mkv",
expectedOutput: map[string]any{"title": "Kill", "year": 2024, "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "resolution": "1080p", "quality": "WEB-DL", "codec": "avc", "audio": []string{"Atmos", "Dolby Digital Plus"}, "channels": []string{"5.1"}, "group": "XEBEC", "container": "mkv", "extension": "mkv", "network": "Amazon", "repack": true},
},
{
releaseName: "Mad.Max.Fury.Road.2015.1080p.BluRay.DDP5.1.x265.10bit-GalaxyRG265[TGx]",
expectedOutput: map[string]any{"title": "Mad Max Fury Road", "year": 2015, "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "resolution": "1080p", "codec": "hevc", "bit_depth": "10bit", "audio": []string{"Dolby Digital Plus"}, "channels": []string{"5.1"}, "group": "GalaxyRG265", "quality": "BluRay"},
},
{
releaseName: "Властелин колец: Кольца власти (S1E1-8 of 8) / The Lord of the Rings: The Rings of Power (2022) WEB-DL",
expectedOutput: map[string]any{"title": "Властелин колец: Кольца власти", "year": 2022, "seasons": []int{1}, "episodes": []int{1, 2, 3, 4, 5, 6, 7, 8}, "languages": []string{"ru"}, "quality": "WEB-DL"},
},
{
releaseName: "抓娃娃 Successor.2024.TC1080P.国语中字",
expectedOutput: map[string]any{"title": "Successor", "year": 2024, "seasons": []int{}, "episodes": []int{}, "languages": []string{"zh"}, "resolution": "1080p", "quality": "TeleCine", "trash": true},
},
{
releaseName: "True.Detective.S03E02.720p.WEB.x265-MiNX[eztv].mkv",
expectedOutput: map[string]any{"title": "True Detective", "seasons": []int{3}, "episodes": []int{2}, "languages": []string{}, "resolution": "720p", "scene": true, "quality": "WEB", "codec": "hevc", "group": "MiNX", "extension": "mkv", "container": "mkv"},
},
{
releaseName: "True.Grit.1969.720p.WEB.x265-MiNX[eztv].mkv",
expectedOutput: map[string]any{"title": "True Grit", "year": 1969, "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "resolution": "720p", "scene": true, "quality": "WEB", "codec": "hevc", "group": "MiNX", "extension": "mkv", "container": "mkv"},
},
{
releaseName: "Free Samples (2012) [BluRay] [1080p] [YTS.AM]",
expectedOutput: map[string]any{"title": "Free Samples", "year": 2012, "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "resolution": "1080p", "quality": "BluRay"},
},
{
releaseName: "Trailer Park Boys S01-S10 + Movies + Specials + Extras [Ultimate Collection]-CAPTAiN",
expectedOutput: map[string]any{"title": "Trailer Park Boys", "seasons": []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, "episodes": []int{}, "languages": []string{}, "complete": true, "group": "CAPTAiN"},
},
{
releaseName: "Adbhut (2024) Hindi 1080p HDTVRip x264 AAC 5.1 [2.2GB] - QRips",
expectedOutput: map[string]any{"title": "Adbhut", "year": 2024, "seasons": []int{}, "episodes": []int{}, "languages": []string{"hi"}, "resolution": "1080p", "quality": "HDTVRip", "codec": "avc", "audio": []string{"AAC"}, "channels": []string{"5.1"}, "group": "QRips", "size": "2.2GB"},
},
{
releaseName: "Blood Diamond (2006) 1080p BluRay H264 DolbyD 5 1 + nickarad mp4",
expectedOutput: map[string]any{"title": "Blood Diamond", "year": 2006, "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "resolution": "1080p", "quality": "BluRay", "codec": "avc", "audio": []string{"Dolby Digital"}, "channels": []string{"5.1"}, "container": "mp4"},
},
{
releaseName: "The Lockerbie Bombing (2013) Documentary HDTVRIP",
expectedOutput: map[string]any{"title": "The Lockerbie Bombing", "year": 2013, "documentary": true, "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "quality": "HDTVRip"},
},
{
releaseName: "STEVE.martin.a.documentary.in.2.pieces.S01.COMPLETE.1080p.WEB.H264-SuccessfulCrab[TGx]",
expectedOutput: map[string]any{"title": "STEVE martin a documentary in 2 pieces", "seasons": []int{1}, "episodes": []int{}, "languages": []string{}, "quality": "WEB", "codec": "avc", "group": "SuccessfulCrab", "resolution": "1080p", "documentary": true, "scene": true, "complete": true},
},
{
releaseName: "The New Frontier S01E10 720p WEB H264-INFLATE[eztv] mkv",
expectedOutput: map[string]any{"title": "The New Frontier", "seasons": []int{1}, "episodes": []int{10}, "languages": []string{}, "quality": "WEB", "container": "mkv", "codec": "avc", "group": "INFLATE", "resolution": "720p", "scene": true},
},
{
releaseName: "[BEST-TORRENTS.COM] The.Penguin.S01E07.MULTi.1080p.AMZN.WEB-DL.H264.DDP5.1.Atmos-K83",
expectedOutput: map[string]any{"title": "The Penguin", "seasons": []int{1}, "episodes": []int{7}, "languages": []string{}, "resolution": "1080p", "quality": "WEB-DL", "network": "Amazon", "codec": "avc", "dubbed": true, "audio": []string{"Atmos", "Dolby Digital Plus"}, "channels": []string{"5.1"}, "site": "BEST-TORRENTS.COM"},
},
{
releaseName: "[ Torrent911.my ] The.Penguin.S01E07.FRENCH.WEBRip.x264.mp4",
expectedOutput: map[string]any{"title": "The Penguin", "seasons": []int{1}, "episodes": []int{7}, "languages": []string{"fr"}, "quality": "WEBRip", "codec": "avc", "site": "Torrent911.my", "container": "mp4", "extension": "mp4"},
},
{
releaseName: "The.O.C.Seasons.01-04.AMZN.1080p.10bit.x265.hevc-Bearfish",
expectedOutput: map[string]any{"title": "The O C", "seasons": []int{1, 2, 3, 4}, "episodes": []int{}, "languages": []string{}, "resolution": "1080p", "network": "Amazon", "codec": "hevc", "bit_depth": "10bit", "group": "Bearfish"},
},
{
releaseName: "The Adam Project 2022 2160p NF WEB-DL DDP 5 1 Atmos DoVi HDR HEVC-SiC mkv",
expectedOutput: map[string]any{"title": "The Adam Project", "year": 2022, "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "resolution": "2160p", "quality": "WEB-DL", "network": "Netflix", "codec": "hevc", "container": "mkv", "audio": []string{"Atmos", "Dolby Digital Plus"}, "channels": []string{"5.1"}, "hdr": []string{"DV", "HDR"}},
},
{
releaseName: "1923 S02E01 The Killing Season 1080p AMZN WEB-DL DDP5 1 H 264-FLUX[TGx]",
expectedOutput: map[string]any{"title": "1923", "seasons": []int{2}, "episodes": []int{1}, "languages": []string{}, "resolution": "1080p", "quality": "WEB-DL", "network": "Amazon", "codec": "avc", "audio": []string{"Dolby Digital Plus"}, "channels": []string{"5.1"}, "group": "FLUX"},
},
{
releaseName: "1883.S01E01.1883.2160p.WEB-DL.DDP5.1.H.265-NTb.mkv",
expectedOutput: map[string]any{"title": "1883", "seasons": []int{1}, "episodes": []int{1}, "languages": []string{}, "resolution": "2160p", "quality": "WEB-DL", "codec": "hevc", "audio": []string{"Dolby Digital Plus"}, "channels": []string{"5.1"}, "group": "NTb", "extension": "mkv", "container": "mkv"},
},
{
releaseName: "1923 S02E01 1080p WEB H264-SuccessfulCrab",
expectedOutput: map[string]any{"title": "1923", "seasons": []int{2}, "episodes": []int{1}, "languages": []string{}, "resolution": "1080p", "quality": "WEB", "codec": "avc", "scene": true, "group": "SuccessfulCrab"},
},
{
releaseName: "[Anime Time] Naruto - 116 - 360 Degrees of Vision The Byakugan's Blind Spot.mkv",
expectedOutput: map[string]any{"title": "Naruto", "seasons": []int{}, "episodes": []int{116}, "languages": []string{}, "group": "Anime Time", "extension": "mkv", "container": "mkv"},
},
{
releaseName: "[DKB] Blue Lock - (Season 01) [1080p][HEVC x265 10bit][Multi-Subs]",
expectedOutput: map[string]any{"title": "Blue Lock", "seasons": []int{1}, "episodes": []int{}, "languages": []string{}, "resolution": "1080p", "bit_depth": "10bit", "codec": "hevc", "subbed": true, "group": "DKB"},
},
{
releaseName: "[JySzE] Naruto [v2] [R2J] [VFR] [Dual Audio] [Complete] [Extras] [x264]",
expectedOutput: map[string]any{"title": "Naruto", "seasons": []int{}, "episodes": []int{}, "languages": []string{"fr"}, "codec": "avc", "dubbed": true, "group": "JySzE", "complete": true, "region": "R2J"},
},
{
releaseName: "[JySzE] Naruto [v2] [R2J] [VFR] [Dual Audio] [Complete] [Extras] [x264]",
expectedOutput: map[string]any{"title": "Naruto", "seasons": []int{}, "episodes": []int{}, "languages": []string{"fr"}, "codec": "avc", "dubbed": true, "group": "JySzE", "complete": true, "region": "R2J"},
},
{
releaseName: "Naruto HD [1080p] (001-220) [Complete Series + Movies]",
expectedOutput: map[string]any{"title": "Naruto", "seasons": []int{}, "episodes": []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220}, "languages": []string{}, "resolution": "1080p", "quality": "HDTV", "complete": true},
},
{
releaseName: "[JySzE] Naruto [v3] [R2J] [VFR] [Dual Audio] [Complete] [Extras] [x264]",
expectedOutput: map[string]any{"title": "Naruto", "seasons": []int{}, "episodes": []int{}, "languages": []string{"fr"}, "codec": "avc", "dubbed": true, "group": "JySzE", "complete": true, "region": "R2J"},
},
{
releaseName: "NARUTO CARTOON NETWORK-TOONAMI BROADCAST (2005-2009) [TVRip] [Episodes 001-209 Movies 1 & 3 & OVA)",
expectedOutput: map[string]any{"title": "NARUTO", "seasons": []int{}, "episodes": []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209}, "languages": []string{}, "quality": "TVRip", "complete": true, "extras": []string{"OVA"}, "network": "Cartoon Network"},
},
{
releaseName: "NARUTO CARTOON NETWORK-TOONAMI BROADCAST (2005-2009) [TVRip] [Episodes 001-209 Movies 1 & 3 & OVA)",
expectedOutput: map[string]any{"title": "NARUTO", "seasons": []int{}, "episodes": []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209}, "languages": []string{}, "quality": "TVRip", "complete": true, "extras": []string{"OVA"}, "network": "Cartoon Network"},
},
{
releaseName: "Naruto Complete [Ep 01 - 220][English][480p]",
expectedOutput: map[string]any{"title": "Naruto", "seasons": []int{}, "episodes": []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220}, "languages": []string{"en"}, "complete": true, "resolution": "480p"},
},
{
releaseName: "[DBD-Raws][火影忍者/Naruto/NARUTO -ナルト-][166-192TV][BOX7][美版/USA.Ver][1080P][BDRip][HEVC-10bit][FLAC][MKV]",
expectedOutput: map[string]any{"title": "Naruto", "seasons": []int{}, "episodes": []int{166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192}, "languages": []string{"ja", "zh"}, "quality": "BDRip", "audio": []string{"FLAC"}, "resolution": "1080p", "codec": "hevc", "bit_depth": "10bit", "container": "mkv", "group": "DBD-Raws"},
},
{
releaseName: "Naruto Collection [DB 1080p][ Dual Audio ][ English & Arabic Sub ]",
expectedOutput: map[string]any{"title": "Naruto", "seasons": []int{}, "episodes": []int{}, "languages": []string{"en", "ar"}, "resolution": "1080p", "subbed": true, "dubbed": true, "complete": true},
},
{
releaseName: "Inherent.Vice.2014.1080p.BluRay.AVC.DTS-HD.MA.5.1-RARBG",
expectedOutput: map[string]any{"title": "Inherent Vice", "year": 2014, "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "resolution": "1080p", "codec": "avc", "audio": []string{"DTS Lossless"}, "channels": []string{"5.1"}, "group": "RARBG", "quality": "BluRay", "site": "RARBG"},
},
{
releaseName: "Агентство / The Agency / Сезон: 1 / Серии: 1-10 из 10 [2024 HEVC HDR10 Dolby Vision WEB-DL 2160p 4k] MVO (HDRezka Studio) + DVO (Viruse Project) + Original + Sub (Eng)",
expectedOutput: map[string]any{"title": "The Agency", "seasons": []int{1}, "episodes": []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, "languages": []string{"en", "ru"}, "quality": "WEB-DL", "resolution": "2160p", "bit_depth": "10bit", "codec": "hevc", "hdr": []string{"DV", "HDR"}, "subbed": true, "year": 2024},
},
{
releaseName: "A Complete Unknown 2024 1080p MA WEB-DL DDP5 1 Atmos H 264-BYNDR mkv",
expectedOutput: map[string]any{"title": "A Complete Unknown", "year": 2024, "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "quality": "WEB-DL", "resolution": "1080p", "codec": "avc", "container": "mkv", "audio": []string{"Atmos", "Dolby Digital Plus"}, "channels": []string{"5.1"}},
},
{
releaseName: "[Ex-torrenty.org]iCarly.S04.PLDUB.1080p.AMZN.WEB-DL.DDP2.0.H264-Ralf",
expectedOutput: map[string]any{"title": "iCarly", "seasons": []int{4}, "episodes": []int{}, "languages": []string{"pl"}, "channels": []string{"2.0"}, "quality": "WEB-DL", "resolution": "1080p", "codec": "avc", "audio": []string{"Dolby Digital Plus"}, "group": "Ralf", "network": "Amazon", "site": "Ex-torrenty.org"},
},
{
releaseName: "Deadpool (2016) [2160p] [7.1 AAC ENG] [5.1 AAC ENG FRE GER ITA SPA] [COMMENTARY] [Multi-Sub] [10bit] [UHD] [HEVC] [x265] [pseudo].mkv",
expectedOutput: map[string]any{"container": "mkv", "resolution": "2160p", "year": 2016, "bit_depth": "10bit", "codec": "hevc", "channels": []string{"5.1", "7.1"}, "audio": []string{"AAC"}, "episodes": []int{}, "languages": []string{"en", "fr", "es", "it", "de"}, "subbed": true, "commentary": true, "extension": "mkv", "seasons": []int{}, "title": "Deadpool"},
},
{
releaseName: "Deadpool [BDremux 1080p][AC3 5.1-DTS 5.1 Castellano-DTSEX 5.1 Ingles+Subs][ES-EN]",
expectedOutput: map[string]any{"resolution": "1080p", "quality": "BluRay REMUX", "channels": []string{"5.1"}, "audio": []string{"DTS Lossless", "DTS Lossy", "Dolby Digital"}, "episodes": []int{}, "languages": []string{"en", "es"}, "subbed": true, "seasons": []int{}, "title": "Deadpool"},
},
{
releaseName: "X-Men Complete 13 Movie Collection Sci-Fi 2000 - 2020 Eng Rus Multi-Subs 1080p [H264-mp4]",
expectedOutput: map[string]any{"container": "mp4", "resolution": "1080p", "complete": true, "codec": "avc", "languages": []string{"en", "ru"}, "subbed": true, "episodes": []int{}, "seasons": []int{}, "title": "X-Men"},
},
{
releaseName: "BLACK PANTHER - Wakanda Forever (2022) 10bit.m1080p.BRRip.H265.MKV.AC3-5.1 DUBPL-ENG-NapisyPL [StarLord]",
expectedOutput: map[string]any{"container": "mkv", "resolution": "1080p", "codec": "hevc", "languages": []string{"en", "pl"}, "episodes": []int{}, "seasons": []int{}, "audio": []string{"Dolby Digital"}, "bit_depth": "10bit", "channels": []string{"5.1"}, "quality": "BRRip", "year": 2022, "title": "BLACK PANTHER - Wakanda Forever"},
},
{
releaseName: "The.White.Lotus.2.Sezon.7.Bölüm.2021.1080p.BLUTV.WEB-DL.AAC2.0.H.264-TURG.mkv",
expectedOutput: map[string]any{"container": "mkv", "resolution": "1080p", "codec": "avc", "languages": []string{}, "episodes": []int{7}, "seasons": []int{2}, "audio": []string{"AAC"}, "channels": []string{"2.0"}, "quality": "WEB-DL", "title": "The White Lotus", "year": 2021, "extension": "mkv", "group": "TURG"},
},
{
releaseName: "Apollo 13 (1995) [1080p] [WEB-DL] [x264] [E-AC3-S78] [Lektor PL]",
expectedOutput: map[string]any{"resolution": "1080p", "year": 1995, "quality": "WEB-DL", "codec": "avc", "audio": []string{"Dolby Digital Plus"}, "seasons": []int{}, "languages": []string{"pl"}, "episodes": []int{}, "title": "Apollo 13"},
},
{
releaseName: "The Killer's Game 2024 PL 1080p WEB-DL H264 DD5.1-S56",
expectedOutput: map[string]any{"resolution": "1080p", "year": 2024, "quality": "WEB-DL", "codec": "avc", "channels": []string{"5.1"}, "audio": []string{"Dolby Digital"}, "seasons": []int{}, "languages": []string{"pl"}, "episodes": []int{}, "title": "The Killer's Game"},
},
{
releaseName: "[a-s]_fairy_tail_-_003_-_infiltrate_the_everlue_mansion__rs2_[1080p_bd-rip][4CB16872].mkv",
expectedOutput: map[string]any{"container": "mkv", "resolution": "1080p", "episode_code": "4CB16872", "quality": "BDRip", "seasons": []int{}, "episodes": []int{3}, "extension": "mkv", "group": "a-s", "languages": []string{}, "title": "fairy tail"},
},
{
releaseName: "[Taxi 1998] [BDRemux Rutracker.org].mkv",
expectedOutput: map[string]any{"container": "mkv", "year": 1998, "quality": "BluRay REMUX", "site": "Rutracker.org", "extension": "mkv", "episodes": []int{}, "seasons": []int{}, "languages": []string{}, "title": "Taxi"},
},
{
releaseName: "www 1TamilBlasters tel - Migration (2023) [English - 720p HQ HDRip - x264 - [DD5 1 (192Kbps) + AAC] - 850MB - ESub] mkv",
expectedOutput: map[string]any{"audio": []string{"Dolby Digital", "AAC"}, "bitrate": "192kbps", "channels": []string{"5.1"}, "codec": "avc", "container": "mkv", "episodes": []int{}, "languages": []string{"en"}, "quality": "HDRip", "resolution": "720p", "seasons": []int{}, "site": "www 1TamilBlasters tel", "size": "850MB", "title": "Migration", "trash": true, "year": 2023},
},
{
releaseName: "www TamilBlasters tel - Sonic the Hedgehog 2 (2022) English 720p HDRip x264 AAC 800MB ESubs mkv",
expectedOutput: map[string]any{"audio": []string{"AAC"}, "codec": "avc", "container": "mkv", "episodes": []int{}, "languages": []string{"en"}, "quality": "HDRip", "resolution": "720p", "seasons": []int{}, "site": "www TamilBlasters tel", "size": "800MB", "title": "Sonic the Hedgehog 2", "year": 2022},
},
{
releaseName: "That 70s Show S02 1080p BluRay REMUX AVC DTS-HD MA 5 1-EPSiLON",
expectedOutput: map[string]any{"resolution": "1080p", "quality": "BluRay REMUX", "codec": "avc", "channels": []string{"5.1"}, "audio": []string{"DTS Lossless"}, "group": "EPSiLON", "seasons": []int{2}, "episodes": []int{}, "languages": []string{}, "title": "That 70s Show"},
},
{
releaseName: "[bonkai77].RahXephon.Episode.08.Bitterly.Cold.Holy.Night.[BD.1080p.Dual.Audio.x265.HEVC.10bit].mkv",
expectedOutput: map[string]any{"title": "RahXephon", "resolution": "1080p", "bit_depth": "10bit", "codec": "hevc", "container": "mkv", "dubbed": true, "seasons": []int{}, "episodes": []int{8}, "languages": []string{}, "extension": "mkv", "quality": "BDRip", "group": "bonkai77"},
},
{
releaseName: "One.Piece.S004E111.Dash.For.a.Miracle!.Alabasta.Animal.Land!.1080p.NF.WEB-DL.DDP2.0.x264-KQRM.mkv",
expectedOutput: map[string]any{"title": "One Piece", "resolution": "1080p", "quality": "WEB-DL", "codec": "avc", "channels": []string{"2.0"}, "audio": []string{"Dolby Digital Plus"}, "seasons": []int{4}, "episodes": []int{111}, "languages": []string{}, "extension": "mkv", "container": "mkv", "group": "KQRM", "network": "Netflix"},
},
{
releaseName: "[Anime Time] One Piece (0001-1071+Movies+Specials) [BD+CR] [Dual Audio] [1080p][HEVC 10bit x265][AAC][Multi Sub]",
expectedOutput: map[string]any{"title": "One Piece", "resolution": "1080p", "codec": "hevc", "audio": []string{"AAC"}, "seasons": []int{}, "episodes": []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071}, "languages": []string{}, "group": "Anime Time", "dubbed": true, "subbed": true, "bit_depth": "10bit"},
},
{
releaseName: "[Kaerizaki-Fansub] One Piece 1098 VOSTFR FHD (1920x1080).mp4",
expectedOutput: map[string]any{"title": "One Piece", "resolution": "1080p", "seasons": []int{}, "episodes": []int{1098}, "languages": []string{"fr"}, "group": "Kaerizaki-Fansub", "container": "mp4", "extension": "mp4"},
},
{
releaseName: "One Punch Man (2019) - S02 - E01 à E12 - [WEB-DL][1080p][Multiple Subtitle][x264][Intégrale Saison 02]",
expectedOutput: map[string]any{"title": "One Punch Man", "year": 2019, "resolution": "1080p", "seasons": []int{2}, "episodes": []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}, "languages": []string{"fr"}, "subbed": true, "quality": "WEB-DL", "codec": "avc", "complete": true},
},
{
releaseName: "FRASIER 1993-2004 [S01-11] [1080P WEB-DL H265 EAC3-FT] [ENG-LEKTOR PL] [ALUSIA]",
expectedOutput: map[string]any{"title": "FRASIER", "year": 1993, "resolution": "1080p", "seasons": []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}, "episodes": []int{}, "languages": []string{"en", "pl"}, "quality": "WEB-DL", "codec": "hevc", "complete": true, "audio": []string{"Dolby Digital Plus"}},
},
{
releaseName: "The Shawshank Redemption 1994 1080p BluRay DDP 5 1 x265-EDGE2020 mkv",
expectedOutput: map[string]any{"title": "The Shawshank Redemption", "year": 1994, "resolution": "1080p", "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "quality": "BluRay", "codec": "hevc", "channels": []string{"5.1"}, "audio": []string{"Dolby Digital Plus"}, "container": "mkv", "group": "EDGE2020"},
},
{
releaseName: "Mission Impossible Dead Reckoning Part One 2023 1080p BluRay DDP 7 1 x265-EDGE2020 mkv",
expectedOutput: map[string]any{"title": "Mission Impossible Dead Reckoning Part One", "year": 2023, "resolution": "1080p", "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "quality": "BluRay", "codec": "hevc", "channels": []string{"7.1"}, "audio": []string{"Dolby Digital Plus"}, "container": "mkv", "group": "EDGE2020"},
},
{
releaseName: "The Dark Knight 2008 IMAX 1080p BluRay DDP 5 1 H 265-EDGE2020 mkv",
expectedOutput: map[string]any{"title": "The Dark Knight", "year": 2008, "resolution": "1080p", "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "edition": "IMAX", "quality": "BluRay", "codec": "hevc", "channels": []string{"5.1"}, "audio": []string{"Dolby Digital Plus"}, "container": "mkv", "group": "EDGE2020"},
},
{
releaseName: "Interstellar 2014 1080p BluRay DDP 5 1 x265-EDGE2020 mkv",
expectedOutput: map[string]any{"title": "Interstellar", "year": 2014, "resolution": "1080p", "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "quality": "BluRay", "codec": "hevc", "channels": []string{"5.1"}, "audio": []string{"Dolby Digital Plus"}, "container": "mkv", "group": "EDGE2020"},
},
{
releaseName: "The Fairly OddParents Fairly Odder S01 720p PMTP WEBRip DDP5 1 x264 TEPES rartv ORARBG",
expectedOutput: map[string]any{"title": "The Fairly OddParents Fairly Odder", "resolution": "720p", "seasons": []int{1}, "episodes": []int{}, "languages": []string{}, "quality": "WEBRip", "codec": "avc", "channels": []string{"5.1"}, "site": "RARBG", "audio": []string{"Dolby Digital Plus"}},
},
{
releaseName: "Formula1.S2025E86.Italy.Grand.Prix.1080i.HDTV.MPA2.0.H.264-playTV",
expectedOutput: map[string]any{"title": "Formula1", "resolution": "1080i", "seasons": []int{2025}, "episodes": []int{86}, "languages": []string{}, "quality": "HDTV", "codec": "avc", "channels": []string{"2.0"}, "group": "playTV"},
},
{
releaseName: "Georgie and Mandys First Marriage S01E18 TV Money 720p AMZN WEB DL DDP5 1 H 264 FLUX EZTV",
expectedOutput: map[string]any{"title": "Georgie and Mandys First Marriage", "resolution": "720p", "seasons": []int{1}, "episodes": []int{18}, "languages": []string{}, "quality": "WEB-DL", "codec": "avc", "channels": []string{"5.1"}, "network": "Amazon", "audio": []string{"Dolby Digital Plus"}},
},
{
releaseName: "xXx.2002.15th.Anniversary.Edition.1080p.BluRay.Remux.AVC.DTS-HD.MA.5.1-FraMeSToR",
expectedOutput: map[string]any{"title": "xXx", "year": 2002, "resolution": "1080p", "seasons": []int{}, "episodes": []int{}, "languages": []string{}, "quality": "BluRay REMUX", "codec": "avc", "channels": []string{"5.1"}, "audio": []string{"DTS Lossless"}, "group": "FraMeSToR", "edition": "Anniversary Edition"},
},
}
p := newTestParser()
for _, tt := range cases {
result := p.Parse(tt.releaseName)
assertExpectedMap(t, tt.releaseName, result, tt.expectedOutput)
}
}
func TestDebugReleasesParse(t *testing.T) {
cases := []struct {
releaseName string
expected map[string]any
}{
{
releaseName: "Dragon Ball Z (Complete Series) [1080p] [MP4] [English Audio]",
expected: map[string]any{"title": "Dragon Ball Z", "resolution": "1080p", "seasons": []int{}, "episodes": []int{}, "languages": []string{"en"}, "container": "mp4", "complete": true},
},
}
p := newTestParser()
for _, tt := range cases {
result := p.Parse(tt.releaseName)
assertExpectedMap(t, tt.releaseName, result, tt.expected)
}
}