Skip to content

Commit

Permalink
+ Added Video Codecs VP8 + VP9
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0pz committed Jul 18, 2023
1 parent f657070 commit 3c01003
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion ReleasePatterns.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ReleasePatterns - All needed patterns for properly parsing releases.
*
* @author Wellington Estevo
* @version 1.0.4
* @version 1.0.5
*/

// Reusable vars
Expand Down Expand Up @@ -167,6 +167,8 @@ const patterns = {
'h264': 'h\\.?264',
'h265': 'h\\.?265',
'HEVC': 'HEVC',
'VP8': 'VP8',
'VP9': 'VP9',
'MP4': 'MP4',
'MPEG': 'MPEG',
'MPEG2': 'MPEG2',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "release-parser",
"version": "1.0.4",
"version": "1.0.5",
"description": "A library for parsing scene release names into human readable data.",
"main": "ReleaseParser.js",
"bin": "cli.js",
Expand Down
4 changes: 2 additions & 2 deletions test/ParserTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

import ReleaseParser from '../ReleaseParser.js'

console.log( ' [Parsed] ' + ReleaseParser( 'RSP.OGG.Vorbis.Player.OCX.v2.5.0-Lz0', '0DAY' ).toString() )
console.log( '[Expected] Title: RSP OGG Vorbis Player OCX / Group: Lz0 / Format: OGG / Version: 2.5.0 / Type: App' )
console.log( ' [Parsed] ' + ReleaseParser( 'Ultimate.Expedition.S01E01.Weve.All.Got.A.Screw.Loose.2160p.iNTERNAL.WEB.HDR.VP9-13', 'TV-HD' ).toString() )
console.log( '[Expected] Show: Ultimate Expedition / Title: Weve All Got A Screw Loose / Group: 13 / Season: 1 / Episode: 1 / Flags: HDR, Internal / Format: VP9 / Resolution: 2160p / Type: TV' )

0 comments on commit 3c01003

Please sign in to comment.