guessit-js 4.7.1 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -7,7 +7,8 @@
7
7
  * guessit('The.Dark.Knight.2008.1080p.BluRay.x264-GROUP.mkv');
8
8
  * // => { title: 'The Dark Knight', year: 2008, screen_size: '1080p', source: 'Blu-ray', video_codec: 'H.264', release_group: 'GROUP', container: 'mkv', mimetype: 'video/x-matroska', type: 'movie' }
9
9
  */
10
- export { guessit, properties, configure, reset, defaultApi, GuessItApi, GuessItException } from './api.js';
10
+ export { guessit, guessitMany, properties, configure, reset, defaultApi, GuessItApi, GuessItException } from './api.js';
11
+ export type { GuessItBatchEntry } from './api.js';
11
12
  export { GUESSIT_SCHEMA } from './schema.js';
12
13
  export type { GuessItResult, GuessitLanguage, PropertySchema } from './schema.js';
13
14
  export { parseOptions, loadConfig, mergeOptions } from './options.js';
@@ -22,3 +22,10 @@ export declare const GUESSIT_SYNONYMS: Record<string, string[]>;
22
22
  * Countries data
23
23
  */
24
24
  export declare const COUNTRIES: Record<string, string>;
25
+ /**
26
+ * ISO 3166-1 alpha-2, for validating the region subtag of an IETF tag. Without it
27
+ * any two letters after a language code read as a country, so a release group
28
+ * ("HR-GZ") came back as Croatian spoken in the nonexistent country GZ and took the
29
+ * group name with it.
30
+ */
31
+ export declare const COUNTRY_ALPHA2: ReadonlySet<string>;
@@ -1,6 +1,13 @@
1
1
  /**
2
2
  * Numeral helpers — port of guessit/rules/common/numeral.py
3
3
  */
4
+ /**
5
+ * Alternation over every known word numeral, longest first so "dix-sept" is not cut
6
+ * short by "dix". Built from the same table `parseWord` reads, so a pattern can
7
+ * never drift from what the formatter accepts — the part rule carried its own
8
+ * English-only copy and so missed "Part Trois".
9
+ */
10
+ export declare const wordNumeralPattern: string;
4
11
  export declare function parseRoman(s: string): number | undefined;
5
12
  export declare function parseWord(s: string): number | undefined;
6
13
  export declare function parseNumber(s: string): number | undefined;
@@ -26,4 +26,11 @@ interface EpisodesConfig {
26
26
  * Build the episodes rebulk
27
27
  */
28
28
  export declare function episodes(config: EpisodesConfig): Rebulk;
29
+ /**
30
+ * Anime signals, mirroring Python's WeakConflictSolver.is_anime: a version or crc32
31
+ * tag, a screen_size quoted inside a bracket group, or a bracket group holding only
32
+ * the release group's name. Several readings are anime-only conventions and must not
33
+ * fire on western releases that look similar.
34
+ */
35
+ export declare function isAnime(matches: any): boolean;
29
36
  export {};
package/dist/schema.d.ts CHANGED
@@ -33,12 +33,12 @@ export interface GuessItResult {
33
33
  cd?: number;
34
34
  cd_count?: number;
35
35
  color_depth?: "10-bit" | "12-bit" | "8-bit";
36
- container?: "3g2" | "3gp" | "3gp2" | "7z" | "ace" | "arj" | "asf" | "avi" | "bmp" | "bz2" | "cb7" | "cbr" | "cbz" | "divx" | "flv" | "gif" | "gz" | "idx" | "iso" | "jpeg" | "jpg" | "m2ts" | "m4v" | "mk2" | "mk3d" | "mka" | "mkv" | "MKV" | "mov" | "mp4" | "mp4a" | "mpeg" | "mpg" | "nfo" | "nzb" | "ogg" | "ogm" | "ogv" | "png" | "qt" | "r00" | "ra" | "ram" | "rar" | "rm" | "srt" | "ssa" | "tar" | "tbn" | "tgz" | "torrent" | "ts" | "vob" | "wav" | "webm" | "webp" | "wma" | "wmv" | "zip" | ("3g2" | "3gp" | "3gp2" | "7z" | "ace" | "arj" | "asf" | "avi" | "bmp" | "bz2" | "cb7" | "cbr" | "cbz" | "divx" | "flv" | "gif" | "gz" | "idx" | "iso" | "jpeg" | "jpg" | "m2ts" | "m4v" | "mk2" | "mk3d" | "mka" | "mkv" | "MKV" | "mov" | "mp4" | "mp4a" | "mpeg" | "mpg" | "nfo" | "nzb" | "ogg" | "ogm" | "ogv" | "png" | "qt" | "r00" | "ra" | "ram" | "rar" | "rm" | "srt" | "ssa" | "tar" | "tbn" | "tgz" | "torrent" | "ts" | "vob" | "wav" | "webm" | "webp" | "wma" | "wmv" | "zip")[];
36
+ container?: "3g2" | "3gp" | "3gp2" | "7z" | "ace" | "arj" | "asf" | "ass" | "avi" | "bmp" | "bz2" | "cb7" | "cbr" | "cbz" | "divx" | "flv" | "gif" | "gz" | "idx" | "iso" | "jpeg" | "jpg" | "m2ts" | "m4v" | "mk2" | "mk3d" | "mka" | "mkv" | "MKV" | "mov" | "mp4" | "mp4a" | "mpeg" | "mpg" | "nfo" | "nzb" | "ogg" | "ogm" | "ogv" | "png" | "qt" | "r00" | "ra" | "ram" | "rar" | "rm" | "srt" | "ssa" | "strm" | "sub" | "tar" | "tbn" | "tgz" | "torrent" | "ts" | "txt" | "url" | "vob" | "vtt" | "wav" | "webm" | "webp" | "wma" | "wmv" | "zip" | ("3g2" | "3gp" | "3gp2" | "7z" | "ace" | "arj" | "asf" | "ass" | "avi" | "bmp" | "bz2" | "cb7" | "cbr" | "cbz" | "divx" | "flv" | "gif" | "gz" | "idx" | "iso" | "jpeg" | "jpg" | "m2ts" | "m4v" | "mk2" | "mk3d" | "mka" | "mkv" | "MKV" | "mov" | "mp4" | "mp4a" | "mpeg" | "mpg" | "nfo" | "nzb" | "ogg" | "ogm" | "ogv" | "png" | "qt" | "r00" | "ra" | "ram" | "rar" | "rm" | "srt" | "ssa" | "strm" | "sub" | "tar" | "tbn" | "tgz" | "torrent" | "ts" | "txt" | "url" | "vob" | "vtt" | "wav" | "webm" | "webp" | "wma" | "wmv" | "zip")[];
37
37
  country?: string | GuessitLanguage;
38
38
  crc32?: string;
39
39
  date?: string | Date;
40
40
  disc?: number | (number)[];
41
- edition?: "Alternative Cut" | "CC" | "collector" | "Collector" | "Criterion" | "DC" | "ddc" | "deluxe" | "Deluxe" | "Director's Cut" | "Director's Definitive Cut" | "extended" | "Extended" | "Fan" | "Festival" | "imax" | "IMAX" | "limited" | "Limited" | "Remastered" | "Restored" | "se" | "Special" | "theatrical" | "Theatrical" | "Ultimate" | "Uncensored" | "Uncut" | "Unrated" | ("Alternative Cut" | "CC" | "collector" | "Collector" | "Criterion" | "DC" | "ddc" | "deluxe" | "Deluxe" | "Director's Cut" | "Director's Definitive Cut" | "extended" | "Extended" | "Fan" | "Festival" | "imax" | "IMAX" | "limited" | "Limited" | "Remastered" | "Restored" | "se" | "Special" | "theatrical" | "Theatrical" | "Ultimate" | "Uncensored" | "Uncut" | "Unrated")[];
41
+ edition?: "Alternative Cut" | "Anniversary" | "Assembly Cut" | "CC" | "collector" | "Collector" | "Criterion" | "DC" | "ddc" | "deluxe" | "Deluxe" | "Director's Cut" | "Director's Definitive Cut" | "extended" | "Extended" | "Fan" | "Festival" | "Final Cut" | "imax" | "IMAX" | "International Cut" | "limited" | "Limited" | "Redux" | "Remastered" | "Restored" | "se" | "Special" | "theatrical" | "Theatrical" | "Ultimate" | "Ultimate Cut" | "Uncensored" | "Uncut" | "Unrated" | ("Alternative Cut" | "Anniversary" | "Assembly Cut" | "CC" | "collector" | "Collector" | "Criterion" | "DC" | "ddc" | "deluxe" | "Deluxe" | "Director's Cut" | "Director's Definitive Cut" | "extended" | "Extended" | "Fan" | "Festival" | "Final Cut" | "imax" | "IMAX" | "International Cut" | "limited" | "Limited" | "Redux" | "Remastered" | "Restored" | "se" | "Special" | "theatrical" | "Theatrical" | "Ultimate" | "Ultimate Cut" | "Uncensored" | "Uncut" | "Unrated")[];
42
42
  episode?: number | (number)[];
43
43
  episode_count?: number;
44
44
  episode_details?: string | (string)[];
@@ -48,8 +48,8 @@ export interface GuessItResult {
48
48
  film_title?: string;
49
49
  frame_rate?: string;
50
50
  language?: string | GuessitLanguage | (string | GuessitLanguage)[];
51
- mimetype?: "application/x-bittorrent" | "application/x-iso9660-image" | "application/x-rar-compressed" | "application/zip" | "image/gif" | "image/jpeg" | "image/png" | "text/plain" | "video/mp2t" | "video/mp4" | "video/webm" | "video/x-matroska" | "video/x-msvideo";
52
- other?: "2in1" | "3D" | "asrequested" | "Audio Fixed" | "Banner" | "Bonus" | "BT.2020" | "Classic" | "Clear Art" | "Clear Logo" | "Colorized" | "Complet" | "Complete" | "CONVERT" | "Converted" | "Cover" | "Dirfix" | "Disc Art" | "DOCU" | "Documentary" | "DOKU" | "Dolby Vision" | "Dual" | "Dual Audio" | "East Coast Feed" | "Extras" | "Fan Subtitled" | "Fanart" | "Fansub" | "Fast Subtitled" | "Fastsub" | "FHD" | "Fix" | "Fixed" | "Full HD" | "Half Over Under" | "Half Side By Side" | "Hardcoded Subtitles" | "HC" | "HD" | "HDLight" | "HDR10" | "HFR" | "High Frame Rate" | "High Quality" | "High Resolution" | "HQ" | "HR" | "Hybrid" | "Internal" | "Landscape" | "LD" | "LDTV" | "LiNE" | "Line Audio" | "Line Dubbed" | "Logo" | "Low Definition" | "MD" | "mHD" | "Mic Dubbed" | "Micro HD" | "Mux" | "Nfofix" | "NTSC" | "Oad" | "OAR" | "Oav" | "Obfuscated" | "Ona" | "Open Matte" | "Original Animated Video" | "Original Animation DVD" | "Original Aspect Ratio" | "Original Net Animation" | "Original Video" | "OV" | "Ova" | "Over Under" | "PAL" | "postbot" | "Poster" | "Preair" | "Proof" | "Prooffix" | "Proper" | "PS Vita" | "R5" | "RC" | "Read NFO" | "Real" | "Reencoded" | "Region 5" | "Region C" | "Remux" | "Repost" | "Retail" | "Rip" | "Sample" | "Scrambled" | "Screener" | "SDR" | "SECAM" | "Side By Side" | "Standard Dynamic Range" | "Straight to Video" | "STV" | "Sync Fixed" | "Thumbnail" | "Trailer" | "UHD" | "Ultra HD" | "Upscaled" | "Variable Frame Rate" | "VFR" | "Virtual Reality" | "Vita" | "VO" | "vost" | "West Coast Feed" | "Widescreen" | "ws" | "xpost" | "XXX" | ("2in1" | "3D" | "asrequested" | "Audio Fixed" | "Banner" | "Bonus" | "BT.2020" | "Classic" | "Clear Art" | "Clear Logo" | "Colorized" | "Complet" | "Complete" | "CONVERT" | "Converted" | "Cover" | "Dirfix" | "Disc Art" | "DOCU" | "Documentary" | "DOKU" | "Dolby Vision" | "Dual" | "Dual Audio" | "East Coast Feed" | "Extras" | "Fan Subtitled" | "Fanart" | "Fansub" | "Fast Subtitled" | "Fastsub" | "FHD" | "Fix" | "Fixed" | "Full HD" | "Half Over Under" | "Half Side By Side" | "Hardcoded Subtitles" | "HC" | "HD" | "HDLight" | "HDR10" | "HFR" | "High Frame Rate" | "High Quality" | "High Resolution" | "HQ" | "HR" | "Hybrid" | "Internal" | "Landscape" | "LD" | "LDTV" | "LiNE" | "Line Audio" | "Line Dubbed" | "Logo" | "Low Definition" | "MD" | "mHD" | "Mic Dubbed" | "Micro HD" | "Mux" | "Nfofix" | "NTSC" | "Oad" | "OAR" | "Oav" | "Obfuscated" | "Ona" | "Open Matte" | "Original Animated Video" | "Original Animation DVD" | "Original Aspect Ratio" | "Original Net Animation" | "Original Video" | "OV" | "Ova" | "Over Under" | "PAL" | "postbot" | "Poster" | "Preair" | "Proof" | "Prooffix" | "Proper" | "PS Vita" | "R5" | "RC" | "Read NFO" | "Real" | "Reencoded" | "Region 5" | "Region C" | "Remux" | "Repost" | "Retail" | "Rip" | "Sample" | "Scrambled" | "Screener" | "SDR" | "SECAM" | "Side By Side" | "Standard Dynamic Range" | "Straight to Video" | "STV" | "Sync Fixed" | "Thumbnail" | "Trailer" | "UHD" | "Ultra HD" | "Upscaled" | "Variable Frame Rate" | "VFR" | "Virtual Reality" | "Vita" | "VO" | "vost" | "West Coast Feed" | "Widescreen" | "ws" | "xpost" | "XXX")[];
51
+ mimetype?: "application/x-7z-compressed" | "application/x-ace-compressed" | "application/x-bittorrent" | "application/x-cbr" | "application/x-iso9660-image" | "application/x-nzb" | "application/x-rar-compressed" | "application/x-subrip" | "application/x-tar" | "application/zip" | "image/bmp" | "image/gif" | "image/jpeg" | "image/png" | "image/webp" | "text/vtt" | "text/x-nfo" | "video/mp2t" | "video/mp4" | "video/webm" | "video/x-matroska" | "video/x-msvideo";
52
+ other?: "2in1" | "3D" | "asrequested" | "Audio Fixed" | "Banner" | "Bonus" | "BT.2020" | "Classic" | "Clear Art" | "Clear Logo" | "Closed Caption" | "Colorized" | "Complet" | "Complete" | "CONVERT" | "Converted" | "Cover" | "Dirfix" | "Disc Art" | "DOCU" | "Documentary" | "DOKU" | "Dolby Vision" | "Dual" | "Dual Audio" | "East Coast Feed" | "Extras" | "Fan Subtitled" | "Fanart" | "Fansub" | "Fast Subtitled" | "Fastsub" | "FHD" | "Fix" | "Fixed" | "Forced" | "Full HD" | "Half Over Under" | "Half Side By Side" | "Hardcoded Subtitles" | "HC" | "HD" | "HDLight" | "HDR10" | "HDR10+" | "HFR" | "High Frame Rate" | "High Quality" | "High Resolution" | "HLG" | "HQ" | "HR" | "Hybrid" | "Internal" | "Landscape" | "LD" | "LDTV" | "LiNE" | "Line Audio" | "Line Dubbed" | "Logo" | "Low Definition" | "MD" | "mHD" | "Mic Dubbed" | "Micro HD" | "Mux" | "Nfofix" | "NTSC" | "Oad" | "OAR" | "Oav" | "Obfuscated" | "Ona" | "Open Matte" | "Original Animated Video" | "Original Animation DVD" | "Original Aspect Ratio" | "Original Net Animation" | "Original Video" | "OV" | "Ova" | "Over Under" | "PAL" | "postbot" | "Poster" | "Preair" | "Proof" | "Prooffix" | "Proper" | "PS Vita" | "R5" | "RC" | "Read NFO" | "Real" | "Reencoded" | "Region 5" | "Region C" | "Remux" | "Repost" | "Retail" | "Rip" | "Sample" | "Scrambled" | "Screener" | "SDH" | "SDR" | "SECAM" | "Side By Side" | "Standard Dynamic Range" | "Straight to Video" | "STV" | "Sync Fixed" | "Thumbnail" | "Trailer" | "UHD" | "Ultra HD" | "Upscaled" | "Variable Frame Rate" | "VFR" | "Virtual Reality" | "Vita" | "VO" | "vost" | "West Coast Feed" | "Widescreen" | "ws" | "xpost" | "XXX" | ("2in1" | "3D" | "asrequested" | "Audio Fixed" | "Banner" | "Bonus" | "BT.2020" | "Classic" | "Clear Art" | "Clear Logo" | "Closed Caption" | "Colorized" | "Complet" | "Complete" | "CONVERT" | "Converted" | "Cover" | "Dirfix" | "Disc Art" | "DOCU" | "Documentary" | "DOKU" | "Dolby Vision" | "Dual" | "Dual Audio" | "East Coast Feed" | "Extras" | "Fan Subtitled" | "Fanart" | "Fansub" | "Fast Subtitled" | "Fastsub" | "FHD" | "Fix" | "Fixed" | "Forced" | "Full HD" | "Half Over Under" | "Half Side By Side" | "Hardcoded Subtitles" | "HC" | "HD" | "HDLight" | "HDR10" | "HDR10+" | "HFR" | "High Frame Rate" | "High Quality" | "High Resolution" | "HLG" | "HQ" | "HR" | "Hybrid" | "Internal" | "Landscape" | "LD" | "LDTV" | "LiNE" | "Line Audio" | "Line Dubbed" | "Logo" | "Low Definition" | "MD" | "mHD" | "Mic Dubbed" | "Micro HD" | "Mux" | "Nfofix" | "NTSC" | "Oad" | "OAR" | "Oav" | "Obfuscated" | "Ona" | "Open Matte" | "Original Animated Video" | "Original Animation DVD" | "Original Aspect Ratio" | "Original Net Animation" | "Original Video" | "OV" | "Ova" | "Over Under" | "PAL" | "postbot" | "Poster" | "Preair" | "Proof" | "Prooffix" | "Proper" | "PS Vita" | "R5" | "RC" | "Read NFO" | "Real" | "Reencoded" | "Region 5" | "Region C" | "Remux" | "Repost" | "Retail" | "Rip" | "Sample" | "Scrambled" | "Screener" | "SDH" | "SDR" | "SECAM" | "Side By Side" | "Standard Dynamic Range" | "Straight to Video" | "STV" | "Sync Fixed" | "Thumbnail" | "Trailer" | "UHD" | "Ultra HD" | "Upscaled" | "Variable Frame Rate" | "VFR" | "Virtual Reality" | "Vita" | "VO" | "vost" | "West Coast Feed" | "Widescreen" | "ws" | "xpost" | "XXX")[];
53
53
  part?: number | (number)[];
54
54
  proper_count?: number;
55
55
  release_group?: string;
@@ -58,7 +58,7 @@ export interface GuessItResult {
58
58
  season_count?: number;
59
59
  size?: string;
60
60
  source?: "Analog HDTV" | "Blu-ray" | "Camera" | "Digital Master" | "Digital TV" | "DVD" | "HD Camera" | "HD Telecine" | "HD Telesync" | "HD-DVD" | "HDTV" | "Laserdisc" | "Pay-per-view" | "Satellite" | "Telecine" | "Telesync" | "TV" | "Ultra HD Blu-ray" | "Ultra HDTV" | "VHS" | "Video on Demand" | "Web" | "Workprint";
61
- streaming_service?: "4OD" | "9Now" | "9NOW" | "A&E" | "ABC" | "ABC Australia" | "Adult Swim" | "AE" | "AJAZ" | "Al Jazeera English" | "ALL4" | "Amazon" | "Amazon Prime" | "AMBC" | "AMC" | "America's Test Kitchen" | "AMZN" | "AMZN-CBR" | "Animal Planet" | "AnimeLab" | "ANLB" | "ANPL" | "AOL" | "AppleTV" | "APTV" | "ARD" | "AS" | "ATK" | "ATV+" | "ATVP" | "AUBC" | "BBC iPlayer" | "Binge" | "BKPL" | "Blackpills" | "BLU" | "BluTV" | "BNGE" | "BOOM" | "Boomerang" | "BRAV" | "BravoTV" | "Canal+" | "Cartoon Network" | "CBC" | "CBS" | "CC" | "CCGC" | "Channel 4" | "CHGD" | "CHRGD" | "Cinemax" | "CMAX" | "CMT" | "CN" | "CNBC" | "CNLP" | "Comedians in Cars Getting Coffee" | "Comedy Central" | "Country Music Television" | "CR" | "Crackle" | "CRAV" | "Crave" | "CRKL" | "Crunchy Roll" | "CSpan" | "CSPN" | "CTV" | "CUR" | "CuriosityStream" | "CW" | "CWS" | "CWSeed" | "Daisuki" | "DC Universe" | "DCU" | "DDY" | "Deadhouse Films" | "DF" | "DHF" | "Digiturk Diledigin Yerde" | "DISC" | "Discovery" | "Discovery Plus" | "Disney" | "Disney+" | "DIY" | "DIY Network" | "Doc Club" | "DOCC" | "DPlay" | "DPLY" | "DramaFever" | "DSCP" | "DSKI" | "DSNP" | "DSNY" | "E!" | "El Trece" | "ePix" | "EPIX" | "ESPN" | "ESQ" | "Esquire" | "ETTV" | "ETV" | "Facebook Watch" | "FAM" | "Family" | "Family Jr" | "Fandor" | "FANDOR" | "FBWatch" | "FJR" | "FOOD" | "Food Network" | "Fox" | "FOX" | "Fox Premium" | "FOXP" | "Foxtel" | "FP" | "FREE" | "Freeform" | "FXTL" | "FYI" | "FYI Network" | "Gaga" | "GagaOOLala" | "GC" | "GLBL" | "GLOB" | "Global" | "GloboSat Play" | "Hallmark" | "HBO" | "HBO Go" | "HBO Max" | "HGTV" | "HIST" | "History" | "HLMK" | "HMAX" | "hoichoi" | "HoiChoi" | "Hulu" | "HULU" | "ID" | "IFC" | "iflix" | "IFX" | "INA" | "Investigation Discovery" | "iP" | "iQIYI" | "iT" | "iTunes" | "ITV" | "KNOW" | "Knowledge Network" | "LIFE" | "Lifetime" | "MBC" | "MBCVOD" | "MNBC" | "Motor Trend OnDemand" | "MSNBC" | "MTOD" | "MTV" | "MUBI" | "NATG" | "National Audiovisual Institute" | "National Film Board" | "National Geographic" | "NBA" | "NBA TV" | "NBC" | "Netflix" | "NF" | "NFB" | "NFL" | "NFL Now" | "NFLN" | "NHL GameCenter" | "NICK" | "NICKAPP" | "Nickelodeon" | "Norsk Rikskringkasting" | "NRK" | "ODK" | "OnDemandKorea" | "Oprah Winfrey Network" | "Opto" | "OPTO" | "OWN" | "Paramount+" | "ParamountPlus" | "PBS" | "PBS Kids" | "PBSK" | "PCOK" | "Peacock" | "Playstation Network" | "PLUZ" | "Pluzz" | "PMNP" | "PMT+" | "PMTP" | "POGO" | "PokerGO" | "PSN" | "Rakuten TV" | "RED" | "RKTN" | "ROKU" | "RTE" | "RTE One" | "RUUTU" | "SBS" | "SCI" | "Science Channel" | "SeeSo" | "SESO" | "SHMI" | "SHO" | "Shomi" | "Showtime" | "SNET" | "Sony" | "SONY" | "SPIK" | "Spike" | "Spike TV" | "SPKE" | "Sportsnet" | "Sprout" | "SPRT" | "Stan" | "STAN" | "Starz" | "STZ" | "Sveriges Television" | "SVT" | "SwearNet" | "SWER" | "Syfy" | "SYFY" | "TBS" | "TFou" | "TFOU" | "The CW" | "The Roku Channel" | "TLC" | "TUBI" | "TubiTV" | "TV Land" | "TV3" | "TV3 Ireland" | "TV4" | "TV4 Sweeden" | "TVING" | "TVL" | "TVNZ" | "UFC" | "UFC Fight Pass" | "UKTV" | "UNIV" | "Univision" | "USA Network" | "USAN" | "Velocity" | "VH1" | "VICE" | "Viceland" | "Viki" | "VIKI" | "Vimeo" | "VLCT" | "VMEO" | "VRV" | "W Network" | "WatchMe" | "WME" | "WNET" | "WWE Network" | "WWEN" | "XBOX" | "Xbox Video" | "Yahoo" | "YHOO" | "YouTube Red" | "ZDF";
61
+ streaming_service?: "4OD" | "9Now" | "9NOW" | "A&E" | "ABC" | "ABC Australia" | "Adult Swim" | "AE" | "AJAZ" | "Al Jazeera English" | "ALL4" | "Amazon" | "Amazon Prime" | "AMBC" | "AMC" | "America's Test Kitchen" | "AMZN" | "AMZN-CBR" | "Animal Planet" | "Anime Digital Network" | "AnimeLab" | "ANLB" | "ANPL" | "AOL" | "AppleTV" | "APTV" | "ARD" | "AS" | "ATK" | "ATV+" | "ATVP" | "AUBC" | "BBC iPlayer" | "Binge" | "BKPL" | "Blackpills" | "BLU" | "BluTV" | "BNGE" | "BOOM" | "Boomerang" | "BRAV" | "BravoTV" | "Canal+" | "Cartoon Network" | "CBC" | "CBS" | "CC" | "CCGC" | "Channel 4" | "Channel 5" | "CHGD" | "CHRGD" | "Cinemax" | "CMAX" | "CMT" | "CN" | "CNBC" | "CNLP" | "Comedians in Cars Getting Coffee" | "Comedy Central" | "Country Music Television" | "CR" | "Crackle" | "CRAV" | "Crave" | "CRKL" | "Crunchy Roll" | "CSpan" | "CSPN" | "CTV" | "CUR" | "CuriosityStream" | "CW" | "CWS" | "CWSeed" | "Daisuki" | "DAZN" | "DC Universe" | "DCU" | "DDY" | "Deadhouse Films" | "DF" | "DHF" | "Digiturk Diledigin Yerde" | "DISC" | "Discovery" | "Discovery Plus" | "Disney" | "Disney+" | "DIY" | "DIY Network" | "Doc Club" | "DOCC" | "DPlay" | "DPLY" | "DramaFever" | "DSCP" | "DSKI" | "DSNP" | "DSNY" | "E!" | "El Trece" | "ePix" | "EPIX" | "ESPN" | "ESQ" | "Esquire" | "ETTV" | "ETV" | "F1TV" | "Facebook Watch" | "FAM" | "Family" | "Family Jr" | "Fandor" | "FANDOR" | "FBWatch" | "FITE" | "FJR" | "FOOD" | "Food Network" | "Fox" | "FOX" | "Fox Premium" | "FOXP" | "Foxtel" | "FP" | "FREE" | "Freeform" | "FXTL" | "FYI" | "FYI Network" | "Gaga" | "GagaOOLala" | "GC" | "GLBL" | "GLOB" | "Global" | "GloboSat Play" | "Hallmark" | "HBO" | "HBO Go" | "HBO Max" | "HGTV" | "HIST" | "History" | "HLMK" | "HMAX" | "hoichoi" | "HoiChoi" | "Hulu" | "HULU" | "ID" | "IFC" | "iflix" | "IFX" | "INA" | "Investigation Discovery" | "iP" | "iQIYI" | "iT" | "iTunes" | "ITV" | "KNOW" | "Knowledge Network" | "LIFE" | "Lifetime" | "Max" | "MBC" | "MBCVOD" | "MNBC" | "Motor Trend OnDemand" | "MotorTrend" | "MSNBC" | "MTOD" | "MTV" | "MUBI" | "NATG" | "National Audiovisual Institute" | "National Film Board" | "National Geographic" | "NBA" | "NBA TV" | "NBC" | "Netflix" | "NF" | "NFB" | "NFL" | "NFL Now" | "NFLN" | "NHL GameCenter" | "NICK" | "NICKAPP" | "Nickelodeon" | "Norsk Rikskringkasting" | "NowTV" | "NRK" | "ODK" | "OnDemandKorea" | "Oprah Winfrey Network" | "Opto" | "OPTO" | "OWN" | "Paramount+" | "ParamountPlus" | "PBS" | "PBS Kids" | "PBSK" | "PCOK" | "Peacock" | "Playstation Network" | "PLUZ" | "Pluzz" | "PMNP" | "PMT+" | "PMTP" | "POGO" | "PokerGO" | "PSN" | "Rakuten TV" | "RED" | "RKTN" | "ROKU" | "RTE" | "RTE One" | "RUUTU" | "SBS" | "SCI" | "Science Channel" | "SeeSo" | "SESO" | "SHMI" | "SHO" | "Shomi" | "Showtime" | "SNET" | "Sony" | "SONY" | "SPIK" | "Spike" | "Spike TV" | "SPKE" | "Sportsnet" | "Sprout" | "SPRT" | "Stan" | "STAN" | "Starz" | "STZ" | "Sveriges Television" | "SVT" | "SwearNet" | "SWER" | "Syfy" | "SYFY" | "TBS" | "TFou" | "TFOU" | "The CW" | "The Roku Channel" | "TLC" | "TUBI" | "TubiTV" | "TV Land" | "TV3" | "TV3 Ireland" | "TV4" | "TV4 Sweeden" | "TVING" | "TVL" | "TVNZ" | "UFC" | "UFC Fight Pass" | "UKTV" | "UNIV" | "Univision" | "USA Network" | "USAN" | "Velocity" | "VH1" | "VICE" | "Viceland" | "Viki" | "VIKI" | "Vimeo" | "VLCT" | "VMEO" | "VRV" | "W Network" | "WatchMe" | "WME" | "WNET" | "WWE Network" | "WWEN" | "XBOX" | "Xbox Video" | "Yahoo" | "YHOO" | "YouTube Red" | "ZDF";
62
62
  subtitle_language?: string | GuessitLanguage | (string | GuessitLanguage)[];
63
63
  title?: string;
64
64
  type?: "episode" | "movie";
@@ -66,7 +66,7 @@ export interface GuessItResult {
66
66
  version?: number;
67
67
  video_api?: "DXVA";
68
68
  video_bit_rate?: string;
69
- video_codec?: "DivX" | "DVDivX" | "H.263" | "H.264" | "H.265" | "MPEG-2" | "RealVideo" | "VC-1" | "VP7" | "VP8" | "VP80" | "VP9" | "Xvid" | "XviD";
69
+ video_codec?: "AV1" | "AV2" | "DivX" | "DVDivX" | "H.263" | "H.264" | "H.265" | "MPEG-2" | "RealVideo" | "VC-1" | "VP7" | "VP8" | "VP80" | "VP9" | "Xvid" | "XviD";
70
70
  video_profile?: "Advanced Video Codec High Definition" | "Baseline" | "BP" | "EP" | "Extended" | "HEVC" | "High" | "High 10" | "High 4:2:2" | "High 4:4:4 Predictive" | "High Efficiency Video Coding" | "HiP" | "HP" | "Main" | "MP" | "SC" | "Scalable Video Coding" | "SVC" | "XP" | ("Advanced Video Codec High Definition" | "Baseline" | "BP" | "EP" | "Extended" | "HEVC" | "High" | "High 10" | "High 4:2:2" | "High 4:4:4 Predictive" | "High Efficiency Video Coding" | "HiP" | "HP" | "Main" | "MP" | "SC" | "Scalable Video Coding" | "SVC" | "XP")[];
71
71
  website?: string;
72
72
  year?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guessit-js",
3
- "version": "4.7.1",
3
+ "version": "4.9.0",
4
4
  "description": "Extract metadata (title, year, season, episode, codec, language, etc.) from media filenames — TypeScript port of Python guessit",
5
5
  "keywords": [
6
6
  "guessit",
@@ -73,7 +73,7 @@
73
73
  "@vitest/coverage-v8": "^1.0.0",
74
74
  "binaryen": "^125.0.0",
75
75
  "js-yaml": "^4.1.0",
76
- "rebulk-js": "^3.4.0",
76
+ "rebulk-js": "^3.5.0",
77
77
  "tsx": "^4.23.12",
78
78
  "typescript": "^5.3.0",
79
79
  "vite": "^5.0.0",