diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-04-26 20:07:06 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-04-26 20:07:06 -0400 |
| commit | 62665656ffc8c20b7913b64dd14f4739bdcf29e7 (patch) | |
| tree | 52893728becf4b7cb7b6b21f36d3a030b33ab376 /web | |
| parent | 0a566abb1557f1a06723564b080061c06afd5de9 (diff) | |
| download | x-62665656ffc8c20b7913b64dd14f4739bdcf29e7.tar.xz x-62665656ffc8c20b7913b64dd14f4739bdcf29e7.zip | |
chore: reformat the world, set up autoformat on commit
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'web')
81 files changed, 109 insertions, 111 deletions
diff --git a/web/bskybot/README.md b/web/bskybot/README.md index e97911b..8bf091c 100644 --- a/web/bskybot/README.md +++ b/web/bskybot/README.md @@ -6,9 +6,9 @@ Gobot-bsky - a simple GO lib to write Bluesky bots Has to provide: -* a handle - example bluesky handle: "example.bsky.social" -* an apikey - is used for authetication and the retrieval of the access token and refresh token. To create a new one: Settings --> App Passwords -* the server (PDS) - the Bluesky's "PDS Service" is bsky.social. +- a handle - example bluesky handle: "example.bsky.social" +- an apikey - is used for authetication and the retrieval of the access token and refresh token. To create a new one: Settings --> App Passwords +- the server (PDS) - the Bluesky's "PDS Service" is bsky.social. ```go import gobot "github.com/danrusei/gobot-bsky" diff --git a/web/mastosan/README.md b/web/mastosan/README.md index d67fb3a..11ba912 100644 --- a/web/mastosan/README.md +++ b/web/mastosan/README.md @@ -20,5 +20,3 @@ To build the Rust module from inside the Nix flake: This adds about two megabytes to the resulting binary, including the AOT WebAssembly runtime wazero: https://wazero.io/ - - diff --git a/web/parsetorrentname/README.md b/web/parsetorrentname/README.md index 75d4288..5d4d1b4 100644 --- a/web/parsetorrentname/README.md +++ b/web/parsetorrentname/README.md @@ -9,10 +9,10 @@ > Extract media information from torrent-like filename A Go port of [Jānis](https://github.com/jzjzjzj)' awesome -[library](https://github.com/jzjzjzj/parse-torrent-name) written in +[library](https://github.com/jzjzjzj/parse-torrent-name) written in javascript. -Extract all possible media information present in filenames. Multiple regex +Extract all possible media information present in filenames. Multiple regex rules are applied on filename string each of which extracts correponding information from the filename. If a regex rule matches, the corresponding part is removed from the filename. In the end, the remaining part is taken as the @@ -70,7 +70,7 @@ PTN.parse('The Martian 2015 540p HDRip KORSUB x264 AAC2 0-FGT') # } ``` -### TV episodes +### TV episodes ```py PTN.parse('Mr Robot S01E05 HDTV x264-KILLERS[ettv]') @@ -90,40 +90,40 @@ PTN.parse('friends.s02e01.720p.bluray-sujaidr') # 'title': 'friends', # 'resolution': '720p', # 'group': 'sujaidr', -# 'quality': 'bluray' +# 'quality': 'bluray' # } ``` ### Note -PTN does not garantee the fields `group`, `excess` and `episodeName` as these -fields might be interchanged with each other. This shoudn't affect most -applications since episode name can be fetched from an online database +PTN does not garantee the fields `group`, `excess` and `episodeName` as these +fields might be interchanged with each other. This shoudn't affect most +applications since episode name can be fetched from an online database after getting the season and episode number correctly. ### Parts extracted -* audio -* codec -* container -* episode -* episodeName -* excess -* extended -* garbage -* group -* hardcoded -* language -* proper -* quality -* region -* repack -* resolution -* season -* title -* website -* widescreen -* year +- audio +- codec +- container +- episode +- episodeName +- excess +- extended +- garbage +- group +- hardcoded +- language +- proper +- quality +- region +- repack +- resolution +- season +- title +- website +- widescreen +- year ## Install diff --git a/web/parsetorrentname/testdata/golden_file_000.json b/web/parsetorrentname/testdata/golden_file_000.json index 18275c5..bae82e3 100644 --- a/web/parsetorrentname/testdata/golden_file_000.json +++ b/web/parsetorrentname/testdata/golden_file_000.json @@ -6,4 +6,4 @@ "quality": "HDTV", "codec": "x264", "group": "ASAP[ettv]" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_001.json b/web/parsetorrentname/testdata/golden_file_001.json index eaf2fcd..1bf896e 100644 --- a/web/parsetorrentname/testdata/golden_file_001.json +++ b/web/parsetorrentname/testdata/golden_file_001.json @@ -4,4 +4,4 @@ "resolution": "1080p", "quality": "BrRip", "codec": "H264" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_002.json b/web/parsetorrentname/testdata/golden_file_002.json index 6933488..a51e002 100644 --- a/web/parsetorrentname/testdata/golden_file_002.json +++ b/web/parsetorrentname/testdata/golden_file_002.json @@ -4,4 +4,4 @@ "quality": "HDRip", "codec": "XViD", "group": "EVO" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_003.json b/web/parsetorrentname/testdata/golden_file_003.json index 0efb456..b7106ce 100644 --- a/web/parsetorrentname/testdata/golden_file_003.json +++ b/web/parsetorrentname/testdata/golden_file_003.json @@ -5,4 +5,4 @@ "quality": "HDTV", "codec": "XviD", "group": "LOL [eztv]" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_004.json b/web/parsetorrentname/testdata/golden_file_004.json index fa476ac..cffbe77 100644 --- a/web/parsetorrentname/testdata/golden_file_004.json +++ b/web/parsetorrentname/testdata/golden_file_004.json @@ -4,4 +4,4 @@ "resolution": "720p", "quality": "BrRip", "codec": "x264" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_005.json b/web/parsetorrentname/testdata/golden_file_005.json index 8985840..de491d7 100644 --- a/web/parsetorrentname/testdata/golden_file_005.json +++ b/web/parsetorrentname/testdata/golden_file_005.json @@ -7,4 +7,4 @@ "audio": "DD5.1", "group": "RARBG", "extended": true -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_006.json b/web/parsetorrentname/testdata/golden_file_006.json index cf147c4..3d148ba 100644 --- a/web/parsetorrentname/testdata/golden_file_006.json +++ b/web/parsetorrentname/testdata/golden_file_006.json @@ -5,4 +5,4 @@ "codec": "XViD", "group": "juggs[ETRG]", "extended": true -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_007.json b/web/parsetorrentname/testdata/golden_file_007.json index c1124c3..01dd9a7 100644 --- a/web/parsetorrentname/testdata/golden_file_007.json +++ b/web/parsetorrentname/testdata/golden_file_007.json @@ -4,4 +4,4 @@ "quality": "WEBDL DVDRip", "codec": "XviD", "group": "MAX" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_008.json b/web/parsetorrentname/testdata/golden_file_008.json index f12e415..63946a1 100644 --- a/web/parsetorrentname/testdata/golden_file_008.json +++ b/web/parsetorrentname/testdata/golden_file_008.json @@ -4,4 +4,4 @@ "quality": "PPV WEB-DL", "codec": "x264", "group": "WD -={SPARROW}=-" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_009.json b/web/parsetorrentname/testdata/golden_file_009.json index 019686e..b004b0f 100644 --- a/web/parsetorrentname/testdata/golden_file_009.json +++ b/web/parsetorrentname/testdata/golden_file_009.json @@ -3,4 +3,4 @@ "quality": "PPV.HDTV", "codec": "x264", "group": "Ebi[rartv]" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_010.json b/web/parsetorrentname/testdata/golden_file_010.json index 7dd89a3..db4f824 100644 --- a/web/parsetorrentname/testdata/golden_file_010.json +++ b/web/parsetorrentname/testdata/golden_file_010.json @@ -5,4 +5,4 @@ "quality": "HDTV", "codec": "x264", "group": "KILLERS [eztv]" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_011.json b/web/parsetorrentname/testdata/golden_file_011.json index bab67e2..ec16420 100644 --- a/web/parsetorrentname/testdata/golden_file_011.json +++ b/web/parsetorrentname/testdata/golden_file_011.json @@ -6,4 +6,4 @@ "codec": "H264", "audio": "DD5.1", "group": "RARBG" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_012.json b/web/parsetorrentname/testdata/golden_file_012.json index 5c4b26e..f228e41 100644 --- a/web/parsetorrentname/testdata/golden_file_012.json +++ b/web/parsetorrentname/testdata/golden_file_012.json @@ -6,4 +6,4 @@ "codec": "x264", "group": "JYK", "region": "6" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_013.json b/web/parsetorrentname/testdata/golden_file_013.json index 2299fd2..4051ef5 100644 --- a/web/parsetorrentname/testdata/golden_file_013.json +++ b/web/parsetorrentname/testdata/golden_file_013.json @@ -6,4 +6,4 @@ "quality": "WEB-DL", "audio": "DD5.1", "group": "DL.DD5.1" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_014.json b/web/parsetorrentname/testdata/golden_file_014.json index 1c13d04..9cef265 100644 --- a/web/parsetorrentname/testdata/golden_file_014.json +++ b/web/parsetorrentname/testdata/golden_file_014.json @@ -5,4 +5,4 @@ "quality": "HDTV", "codec": "x264", "group": "KILLERS[ettv]" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_015.json b/web/parsetorrentname/testdata/golden_file_015.json index e9bb8cb..a816622 100644 --- a/web/parsetorrentname/testdata/golden_file_015.json +++ b/web/parsetorrentname/testdata/golden_file_015.json @@ -2,4 +2,4 @@ "Title": "Guardians of the Galaxy", "year": 2014, "quality": "CamRip" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_016.json b/web/parsetorrentname/testdata/golden_file_016.json index df4e4e4..1429e95 100644 --- a/web/parsetorrentname/testdata/golden_file_016.json +++ b/web/parsetorrentname/testdata/golden_file_016.json @@ -7,4 +7,4 @@ "codec": "H.264", "audio": "DD5.1", "group": "Cyphanix[rartv]" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_017.json b/web/parsetorrentname/testdata/golden_file_017.json index e6f047e..aee68de 100644 --- a/web/parsetorrentname/testdata/golden_file_017.json +++ b/web/parsetorrentname/testdata/golden_file_017.json @@ -6,4 +6,4 @@ "audio": "LiNE", "group": "UNiQUE", "region": "5" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_018.json b/web/parsetorrentname/testdata/golden_file_018.json index 0e1826b..ce040b0 100644 --- a/web/parsetorrentname/testdata/golden_file_018.json +++ b/web/parsetorrentname/testdata/golden_file_018.json @@ -4,4 +4,4 @@ "quality": "BRRip", "codec": "XViD", "group": "juggs[ETRG]" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_019.json b/web/parsetorrentname/testdata/golden_file_019.json index 240ba4e..9e29ea1 100644 --- a/web/parsetorrentname/testdata/golden_file_019.json +++ b/web/parsetorrentname/testdata/golden_file_019.json @@ -3,4 +3,4 @@ "year": 2013, "quality": "WBBRip", "codec": "XViD" -}
\ No newline at end of file +} diff --git a/web/parsetorrentname/testdata/golden_file_020.json b/web/parsetorrentname/testdata/golden_file_020.json index fa5f0e6..989c6ef 100644 --- a/web/parsetorrentname/testdata/golden_file_020.json +++ b/ |
