Audionut / Upload-Assistant

A fork of L4G attempting to keep updated
https://github.com/L4GSP1KE/Upload-Assistant
59 stars 20 forks source link

MTV upload failing with `KeyError: 'service_longname'` #56

Closed ppkhoa closed 3 weeks ago

ppkhoa commented 3 weeks ago

While trying to upload to MTV, I kept getting this error and ended up having to upload manually to MTV:

:: Upload to MTV?  (y/N)
> y
Uploading to MTV
Searching for existing torrents on site...
No dupes found
Images are already hosted on an approved image host. Skipping re-upload.
Piece size is OVER 8M and does not work on MTV. Generating a new .torrent
Warning: Warning: Piece size exceeded 2000 pieces and .torrent will be approximately 41.56 KiB! Using (2071) pieces.
Traceback (most recent call last):
  File "/home/ppkhoa/l4g/Upload-Assistant/upload.py", line 633, in <module>
    asyncio.run(do_the_thing(base_dir))  # Pass the correct base_dir value here
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/ppkhoa/l4g/Upload-Assistant/upload.py", line 367, in do_the_thing
    await tracker_class.upload(meta)
  File "/mnt/nvme1n1/ppkhoa/l4g/Upload-Assistant/src/trackers/MTV.py", line 45, in upload
    await self.upload_with_retry(meta, cookiefile, common)
  File "/mnt/nvme1n1/ppkhoa/l4g/Upload-Assistant/src/trackers/MTV.py", line 123, in upload_with_retry
    des_tags = await self.get_tags(meta)
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/nvme1n1/ppkhoa/l4g/Upload-Assistant/src/trackers/MTV.py", line 372, in get_tags
    if str(meta['service_longname']) != "":
           ~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'service_longname'

Any idea what's going on here? Other similar trackers are working fine (Aither, ANT, PTP, NBL).

Audionut commented 3 weeks ago

The error suggests that the service key wasn't found. I could just add the check to use some default, but I would really prefer to understand why this was invoked and returned null.

Can you provide me the filename that caused the issue, you can PM at MTV if you prefer.

ppkhoa commented 3 weeks ago

Here's the full output with file name. I was trying to upload a batch of a show:

(l4g) ppkhoa@tangelo ~/l4g $ python3.12 ~/l4g/Upload-Assistant/upload.py /home/ppkhoa/files/\[SubsPlease\]\ Katsute\ Mahou\ Shoujo\ to\ Aku\ wa\ Tekitai\ shiteita\ \(1080p\)/ --imghost imgbox --service CR

Gathering info for [SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)
Exporting MediaInfo...
MediaInfo Exported.
Searching PTP for: [SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 01 (1080p) [4A272C3D].mkv
Could not find any release matching [SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 01 (1080p) [4A272C3D].mkv on PTP
Skipping PTP as no match found
No matches found on any trackers.

Hashing...: 0%
Hashing...: 100%
.torrent created
Prep material saved to /home/ppkhoa/l4g/Upload-Assistant/tmp/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)

Database Info
--------------

Title: The Magical Girl and the Evil Lieutenant Used to Be Archenemies (2024)

Overview: An evil organization invades and destroys everything in its path. The brains of the brutal operation is the kings right-hand man, an evil lieutenant named Mira. Everything changes when a magical girl named Byakuya Mimori tries to stop the evil group in their tracks. When Mira confronts her, he knows its love at first sight. What will become of Mira and Byakuya, stuck between orders and love?

Category: TV
TMDB: https://www.themoviedb.org/tv/239764
IMDB: https://www.imdb.com/title/tt30970523
TVDB: https://www.thetvdb.com/?id=442367&tab=series
MAL : https://myanimelist.net/anime/57217

1080p / WEBDL / SubsPlease

Potentially missing information:
---------------------------------

--edition | Special Edition/Release

Is this correct?
-----------------

Name: The Magical Girl and the Evil Lieutenant Used to Be Archenemies AKA Katsute Mahou Shoujo to Aku wa Tekitai Shite Ita. S01 1080p CR WEB-DL AAC 2.0 H.264-SubsPlease
:: Correct? (y/N)
> y
:: Upload to AITHER?  (y/N)
> y
(modq: No)
Uploading to AITHER
Searching for existing torrents on site...
No dupes found
{'success': True, 'data': 'https://aither.cc/torrent/download/<id>', 'message': 'Torrent uploaded successfully.'}
Adding to rtorrent
Creating fast resume
Adding and starting torrent
:: Upload to PTP?  (y/N)
> n
:: Upload to NBL?  (y/N)
> y
Uploading to NBL
Searching for existing torrents on site...
No dupes found
{'status': 'success'}
Adding to rtorrent
Creating fast resume
Adding and starting torrent
:: Upload to ANT?  (y/N)
> n
:: Upload to MTV?  (y/N)
> y
Uploading to MTV
Searching for existing torrents on site...
No dupes found
Images are already hosted on an approved image host. Skipping re-upload.
Traceback (most recent call last):
  File "/home/ppkhoa/l4g/Upload-Assistant/upload.py", line 633, in <module>
    asyncio.run(do_the_thing(base_dir))  # Pass the correct base_dir value here
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/ppkhoa/l4g/Upload-Assistant/upload.py", line 367, in do_the_thing
    await tracker_class.upload(meta)
  File "/mnt/nvme1n1/ppkhoa/l4g/Upload-Assistant/src/trackers/MTV.py", line 45, in upload
    await self.upload_with_retry(meta, cookiefile, common)
  File "/mnt/nvme1n1/ppkhoa/l4g/Upload-Assistant/src/trackers/MTV.py", line 123, in upload_with_retry
    des_tags = await self.get_tags(meta)
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/nvme1n1/ppkhoa/l4g/Upload-Assistant/src/trackers/MTV.py", line 372, in get_tags
    if str(meta['service_longname']) != "":
           ~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'service_longname'

Also, different season batch for your reference:

(l4g) ppkhoa@tangelo ~/l4g $ python3.12 ~/l4g/Upload-Assistant/upload.py /home/ppkhoa/files/\[SubsPlease\]\ Isekai\ Shikkaku\ \(1080p\)/ --imghost imgbox --service CR --trackers OTW

Gathering info for [SubsPlease] Isekai Shikkaku (1080p)
Skipping existing search as meta already populated
There are already at least 3 images in the image list. Skipping additional screenshots.
Edition After Manual Edition: 
Repack after Checks: 
Prep material saved to /home/ppkhoa/l4g/Upload-Assistant/tmp/[SubsPlease] Isekai Shikkaku (1080p)

Database Info
--------------

Title: No Longer Allowed in Another World (2024)

Overview: Pulled into an otherworldly adventure with cute sidekicks and superpowers, youd think Osamu hit the jackpot. Nope! From a time before pixels, the early 20th-century gloomy author just wants to find a quiet place to meet his maker, not to rack up XP. Sadly, his poetic demise is constantly thwarted by inconvenient heroics. Dive into the hilariously tragic life of the most reluctant hero!

Category: TV
TMDB: https://www.themoviedb.org/tv/205743
IMDB: https://www.imdb.com/title/tt31186547
TVDB: https://www.thetvdb.com/?id=422250&tab=series
MAL : https://myanimelist.net/anime/52367

1080p / WEBDL / SubsPlease

Potentially missing information:
---------------------------------

--edition | Special Edition/Release

Is this correct?
-----------------

Name: No Longer Allowed in Another World AKA Isekai Shikkaku S01 1080p CR WEB-DL AAC 2.0 H.264-SubsPlease
:: Correct? (y/N)
> y
:: Upload to AITHER?  (y/N)
> y
(modq: No)
Uploading to AITHER
Searching for existing torrents on site...
No dupes found
{'success': True, 'data': 'https://aither.cc/torrent/download/<id>', 'message': 'Torrent uploaded successfully.'}
Adding to rtorrent
Creating fast resume
Adding and starting torrent
:: Upload to PTP?  (y/N)
> n
:: Upload to NBL?  (y/N)
> y
Uploading to NBL
Searching for existing torrents on site...
No dupes found
{'status': 'success'}
Adding to rtorrent
Creating fast resume
Adding and starting torrent
:: Upload to ANT?  (y/N)
> n
:: Upload to MTV?  (y/N)
> y
Uploading to MTV
Searching for existing torrents on site...
No dupes found
Images are already hosted on an approved image host. Skipping re-upload.
Piece size is OVER 8M and does not work on MTV. Generating a new .torrent
Warning: Warning: Piece size exceeded 2000 pieces and .torrent will be approximately 41.56 KiB! Using (2071) pieces.
Hashing...: 0%
Hashing...: 100%
Traceback (most recent call last):
  File "/home/ppkhoa/l4g/Upload-Assistant/upload.py", line 633, in <module>
    asyncio.run(do_the_thing(base_dir))  # Pass the correct base_dir value here
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/ppkhoa/l4g/Upload-Assistant/upload.py", line 367, in do_the_thing
    await tracker_class.upload(meta)
  File "/mnt/nvme1n1/ppkhoa/l4g/Upload-Assistant/src/trackers/MTV.py", line 45, in upload
    await self.upload_with_retry(meta, cookiefile, common)
  File "/mnt/nvme1n1/ppkhoa/l4g/Upload-Assistant/src/trackers/MTV.py", line 123, in upload_with_retry
    des_tags = await self.get_tags(meta)
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/nvme1n1/ppkhoa/l4g/Upload-Assistant/src/trackers/MTV.py", line 372, in get_tags
    if str(meta['service_longname']) != "":
           ~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'service_longname'
Audionut commented 3 weeks ago

No issue here. Can you look in the meta.json in the tmp directory, or run again on the file with the --debug argument, which will print the meta to console, and see if you find the service_longname key. I'm seeing it at around line 298 in the meta here.

    "tv_pack": 1,
    "season_int": 1,
    "episode_int": 0,
    "episode_title_storage": "",
    "part": "",
    "video": "D:\\torrent_downloads\\[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)\\[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 01 (1080p) [4A272C3D].mkv",
    "audio": "AAC 2.0",
    "channels": "2.0",
    "has_commentary": false,
    "3D": "",
    "source": "Web",
    "service_longname": "",
    "uhd": "",
    "hdr": "",
    "video_encode": " H.264",
    "video_codec": "AVC",
    "has_encode_settings": false,
    "bit_depth": "8",
    "edition": "",
    "repack": "",
    "name_notag": "The Magical Girl and the Evil Lieutenant Used to Be Archenemies AKA Katsute Mahou Shoujo to Aku wa Tekitai Shite Ita. S01 1080p WEB-DL AAC 2.0 H.264",
    "name": "The Magical Girl and the Evil Lieutenant Used to Be Archenemies AKA Katsute Mahou Shoujo to Aku wa Tekitai Shite Ita. S01 1080p WEB-DL AAC 2.0 H.264-SubsPlease",
    "clean_name": "The Magical Girl and the Evil Lieutenant Used to Be Archenemies AKA Katsute Mahou Shoujo to Aku wa Tekitai Shite Ita. S01 1080p WEB-DL AAC 2.0 H.264-SubsPlease",
    "potential_missing": [
        "edition",
        "service"
    ],
Audionut commented 3 weeks ago

The other thing I noticed, if I understand correctly, is that CR seems to be defined twice in the code https://github.com/Audionut/Upload-Assistant/blob/ed709419f9c86c466ed7effb1146aebf4116345b/src/prep.py#L3019

Once with the longname CR and then with the longname Crunchy Roll, which does not seem correct. I'm not familiar with the web services, is Crunchy Roll the correct longname here?

ppkhoa commented 3 weeks ago

Correct name would be Crunchyroll or CR for short. I'll grab meta.json when I have a chance in a couple hours.

By the way, this page is very helpful in matching service long/short name: https://en.wikipedia.org/wiki/Pirated_movie_release_types#Release_formats

ppkhoa commented 3 weeks ago

I can't find any service_longname key:

(l4g) ppkhoa@tangelo ~/l4g/Upload-Assistant/tmp/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p) $ cat meta.json
{
    "base_dir": "/home/ppkhoa/l4g/Upload-Assistant",
    "path": "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)",
    "screens": 10,
    "category": "TV",
    "type": "WEBDL",
    "manual_source": null,
    "resolution": "1080p",
    "tmdb_manual": null,
    "imdb": null,
    "mal": null,
    "tag": "-SubsPlease",
    "service": "CR",
    "distributor": "",
    "manual_edition": "",
    "season": "S01",
    "episode": "",
    "manual_date": null,
    "no_season": false,
    "no_year": false,
    "no_aka": false,
    "no_dub": false,
    "no_tag": false,
    "no_seed": false,
    "manual_year": 0,
    "ptp": null,
    "blu": null,
    "aither": null,
    "lst": null,
    "oe": null,
    "hdb": null,
    "desc": null,
    "desclink": null,
    "descfile": null,
    "imghost": "imgbox",
    "skip_imghost_upload": false,
    "torrenthash": null,
    "nfo": false,
    "keywords": "based on manga, anime",
    "keep_folder": false,
    "region": null,
    "anon": 0,
    "stream": 0,
    "webdv": false,
    "hardcoded-subs": false,
    "personalrelease": false,
    "dupe": false,
    "debug": true,
    "ffdebug": false,
    "manual": false,
    "max_piece_size": null,
    "nohash": false,
    "rehash": false,
    "draft": false,
    "modq": false,
    "client": null,
    "qbit_tag": null,
    "qbit_cat": null,
    "rtorrent_label": null,
    "trackers": [
        "MTV"
    ],
    "randomized": 0,
    "unattended": false,
    "vapoursynth": false,
    "cleanup": false,
    "freeleech": 0,
    "uuid": "[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)",
    "mode": "cli",
    "isdir": true,
    "is_disc": null,
    "discs": [],
    "filelist": [
        "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 01 (1080p) [4A272C3D].mkv",
        "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 02 (1080p) [C2A5EFC3].mkv",
        "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 03 (1080p) [FDE826D7].mkv",
        "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 04 (1080p) [4BBE0FB4].mkv",
        "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 05 (1080p) [86F4B55C].mkv",
        "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 06 (1080p) [ADDC653E].mkv",
        "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 07 (1080p) [F2F522B4].mkv",
        "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 08 (1080p) [8781F629].mkv",
        "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 09 (1080p) [0CF99918].mkv",
        "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 10 (1080p) [E7AF002D].mkv",
        "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 11 (1080p) [C106AD11].mkv",
        "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 12 (1080p) [8773534F].mkv"
    ],
    "scene": false,
    "search_year": "",
    "mediainfo": {
        "creatingLibrary": {
            "name": "MediaInfoLib",
            "version": "23.10",
            "url": "https://mediaarea.net/MediaInfo"
        },
        "media": {
            "@ref": "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 01 (1080p) [4A272C3D].mkv",
            "track": [
                {
                    "@type": "General",
                    "UniqueID": "0",
                    "VideoCount": "1",
                    "AudioCount": "1",
                    "TextCount": "1",
                    "MenuCount": null,
                    "FileExtension": "mkv",
                    "Format": "Matroska",
                    "Format_Version": "4",
                    "FileSize": "768367209",
                    "Duration": "750.051",
                    "OverallBitRate": "8195360",
                    "FrameRate": "23.976",
                    "FrameCount": "17983",
                    "StreamSize": null,
                    "IsStreamable": "Yes",
                    "File_Created_Date": null,
                    "File_Created_Date_Local": null,
                    "File_Modified_Date": "2024-09-23 16:17:12 UTC",
                    "File_Modified_Date_Local": "2024-09-23 16:17:12",
                    "Encoded_Application": "no_variable_data",
                    "Encoded_Library": "no_variable_data"
                },
                {
                    "@type": "Video",
                    "StreamOrder": "0",
                    "ID": "1",
                    "UniqueID": "1",
                    "Format": "AVC",
                    "Format_Profile": "High",
                    "Format_Level": "4",
                    "Format_Tier": null,
                    "HDR_Format": null,
                    "HDR_Format_Version": null,
                    "HDR_Format_Profile": null,
                    "HDR_Format_Level": null,
                    "HDR_Format_Settings": null,
                    "HDR_Format_Compression": null,
                    "HDR_Format_Compatibility": null,
                    "CodecID": "V_MPEG4/ISO/AVC",
                    "Duration": "750.042",
                    "BitRate": null,
                    "Width": "1920",
                    "Height": "1080",
                    "Stored_Height": "1088",
                    "Sampled_Width": "1920",
                    "Sampled_Height": "1080",
                    "PixelAspectRatio": "1.000",
                    "DisplayAspectRatio": "1.778",
                    "FrameRate_Mode": "CFR",
                    "FrameRate": "23.976",
                    "FrameRate_Num": "24000",
                    "FrameRate_Den": "1001",
                    "FrameCount": "17983",
                    "ColorSpace": "YUV",
                    "ChromaSubsampling": "4:2:0",
                    "ChromaSubsampling_Position": null,
                    "BitDepth": "8",
                    "Delay": "0.000",
                    "Delay_Source": "Container",
                    "StreamSize": null,
                    "Language": null,
                    "Default": "Yes",
                    "Forced": "No",
                    "colour_description_present": "Yes",
                    "colour_description_present_Source": "Container / Stream",
                    "colour_range": "Limited",
                    "colour_range_Source": "Stream",
                    "colour_primaries": "BT.709",
                    "colour_primaries_Source": "Container / Stream",
                    "transfer_characteristics": "BT.709",
                    "transfer_characteristics_Source": "Container / Stream",
                    "matrix_coefficients": "BT.709",
                    "matrix_coefficients_Source": "Container / Stream",
                    "MasteringDisplay_ColorPrimaries": null,
                    "MasteringDisplay_ColorPrimaries_Source": null,
                    "MasteringDisplay_Luminance": null,
                    "MasteringDisplay_Luminance_Source": null,
                    "MaxCLL": null,
                    "MaxCLL_Source": null,
                    "MaxFALL": null,
                    "MaxFALL_Source": null
                },
                {
                    "@type": "Audio",
                    "StreamOrder": "1",
                    "ID": "2",
                    "UniqueID": "2",
                    "Format": "AAC",
                    "Format_Commercial_IfAny": null,
                    "Format_Settings_Endianness": null,
                    "Format_AdditionalFeatures": "LC",
                    "CodecID": "A_AAC-2",
                    "Duration": "750.051",
                    "BitRate_Mode": null,
                    "BitRate": null,
                    "Channels": "2",
                    "ChannelPositions": "Front: L R",
                    "ChannelLayout": "L R",
                    "SamplesPerFrame": "1024",
                    "SamplingRate": "44100",
                    "SamplingCount": "33077249",
                    "FrameRate": "43.066",
                    "FrameCount": null,
                    "Compression_Mode": "Lossy",
                    "Delay": "0.000",
                    "Delay_Source": "Container",
                    "Video_Delay": "0.000",
                    "StreamSize": null,
                    "Language": "ja",
                    "ServiceKind": null,
                    "Default": "Yes",
                    "Forced": "No",
                    "extra": {
                        "Statistics_Tags_Issue": "no_variable_data 1970-01-01 00:00:00 / no_variable_data 2010-02-22 21:41:29",
                        "FromStats_BitRate": "128000",
                        "FromStats_Duration": "00:12:30.051000000",
                        "FromStats_FrameCount": "32302",
                        "FromStats_StreamSize": "12000816",
                        "SamplingCount_Source": "General_Duration",
                        "Duration_Source": "General_Duration"
                    }
                },
                {
                    "@type": "Text",
                    "@typeorder": null,
                    "StreamOrder": "2",
                    "ID": "3",
                    "UniqueID": "3",
                    "Format": "ASS",
                    "CodecID": "S_TEXT/ASS",
                    "Duration": null,
                    "BitRate": null,
                    "FrameRate": null,
                    "FrameCount": null,
                    "ElementCount": null,
                    "StreamSize": null,
                    "Title": "English subs",
                    "Language": "en",
                    "Default": "Yes",
                    "Forced": "No"
                }
            ]
        }
    },
    "sd": 0,
    "filename": "Katsute Mahou Shoujo to Aku wa Tekitai shiteita",
    "bdinfo": null,
    "skip_gen_desc": true,
    "description": null,
    "tmdb": 239764,
    "title": "The Magical Girl and the Evil Lieutenant Used to Be Archenemies",
    "year": 2024,
    "imdb_id": "30970523",
    "tvdb_id": 442367,
    "aka": " AKA Katsute Mahou Shoujo to Aku wa Tekitai Shite Ita.",
    "original_language": "ja",
    "original_title": "\u304b\u3064\u3066\u9b54\u6cd5\u5c11\u5973\u3068\u60aa\u306f\u6575\u5bfe\u3057\u3066\u3044\u305f\u3002",
    "genres": "Animation, Comedy",
    "tmdb_directors": [],
    "mal_id": 57217,
    "anime": true,
    "poster": "https://image.tmdb.org/t/p/original/grYmorVfLV2D2tYJBuBpRZ8n9Pq.jpg",
    "overview": "An evil organization invades and destroys everything in its path. The brains of the brutal operation is the king\u2019s right-hand man, an evil lieutenant named Mira. Everything changes when a magical girl named Byakuya Mimori tries to stop the evil group in their tracks. When Mira confronts her, he knows it\u2019s love at first sight. What will become of Mira and Byakuya, stuck between orders and love?",
    "tmdb_type": "Scripted",
    "runtime": 12,
    "tvmaze_id": 77847,
    "imdb_info": {
        "title": "The Magical Girl and the Evil Lieutenant Used to Be Archenemies",
        "year": 2024,
        "aka": "Katsute Mah\u00f4 Sh\u00f4jo to Aku wa Tekitai Shiteita.",
        "type": "tv series",
        "imdbID": "30970523",
        "runtime": "12",
        "cover": "https://m.media-amazon.com/images/M/MV5BNTgyMGRlYjUtODcwZi00ZTlmLWJjMTgtODlhMmY4NGEwMGFhXkEyXkFqcGc@._V1_FMjpg_UX750_.jpg",
        "plot": "The strategist of an evil organization falls for the magical girl fighting against the organization.",
        "genres": "Animation, Comedy, Fantasy, Romance",
        "original_language": "ja"
    },
    "tv_pack": 1,
    "season_int": 1,
    "episode_int": 0,
    "episode_title_storage": "",
    "part": "",
    "video": "/home/ppkhoa/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 01 (1080p) [4A272C3D].mkv",
    "audio": "AAC 2.0",
    "channels": "2.0",
    "has_commentary": false,
    "3D": "",
    "source": "Web",
    "uhd": "",
    "hdr": "",
    "video_encode": " H.264",
    "video_codec": "AVC",
    "has_encode_settings": false,
    "bit_depth": "8",
    "edition": "",
    "repack": "",
    "name_notag": "The Magical Girl and the Evil Lieutenant Used to Be Archenemies AKA Katsute Mahou Shoujo to Aku wa Tekitai Shite Ita. S01 1080p CR WEB-DL AAC 2.0 H.264",
    "name": "The Magical Girl and the Evil Lieutenant Used to Be Archenemies AKA Katsute Mahou Shoujo to Aku wa Tekitai Shite Ita. S01 1080p CR WEB-DL AAC 2.0 H.264-SubsPlease",
    "clean_name": "The Magical Girl and the Evil Lieutenant Used to Be Archenemies AKA Katsute Mahou Shoujo to Aku wa Tekitai Shite Ita. S01 1080p CR WEB-DL AAC 2.0 H.264-SubsPlease",
    "potential_missing": [
        "edition",
        "service"
    ],
    "image_list": [
        {
            "web_url": "https://imgbox.com/u3kKDMM6",
            "img_url": "https://thumbs2.imgbox.com/a5/91/u3kKDMM6_t.png",
            "raw_url": "https://images2.imgbox.com/a5/91/u3kKDMM6_o.png"
        },
        {
            "web_url": "https://imgbox.com/IXh2P7j8",
            "img_url": "https://thumbs2.imgbox.com/7d/1c/IXh2P7j8_t.png",
            "raw_url": "https://images2.imgbox.com/7d/1c/IXh2P7j8_o.png"
        },
        {
            "web_url": "https://imgbox.com/hiXWDI07",
            "img_url": "https://thumbs2.imgbox.com/73/17/hiXWDI07_t.png",
            "raw_url": "https://images2.imgbox.com/73/17/hiXWDI07_o.png"
        },
        {
            "web_url": "https://imgbox.com/kk7ms1aw",
            "img_url": "https://thumbs2.imgbox.com/00/5c/kk7ms1aw_t.png",
            "raw_url": "https://images2.imgbox.com/00/5c/kk7ms1aw_o.png"
        },
        {
            "web_url": "https://imgbox.com/dA5cmU28",
            "img_url": "https://thumbs2.imgbox.com/1f/0a/dA5cmU28_t.png",
            "raw_url": "https://images2.imgbox.com/1f/0a/dA5cmU28_o.png"
        },
        {
            "web_url": "https://imgbox.com/PdWHt5EG",
            "img_url": "https://thumbs2.imgbox.com/9f/d4/PdWHt5EG_t.png",
            "raw_url": "https://images2.imgbox.com/9f/d4/PdWHt5EG_o.png"
        },
        {
            "web_url": "https://imgbox.com/zUaxXNLq",
            "img_url": "https://thumbs2.imgbox.com/67/d7/zUaxXNLq_t.png",
            "raw_url": "https://images2.imgbox.com/67/d7/zUaxXNLq_o.png"
        },
        {
            "web_url": "https://imgbox.com/1XvUa7ZY",
            "img_url": "https://thumbs2.imgbox.com/70/ad/1XvUa7ZY_t.png",
            "raw_url": "https://images2.imgbox.com/70/ad/1XvUa7ZY_o.png"
        },
        {
            "web_url": "https://imgbox.com/TjQlKVD3",
            "img_url": "https://thumbs2.imgbox.com/61/9c/TjQlKVD3_t.png",
            "raw_url": "https://images2.imgbox.com/61/9c/TjQlKVD3_o.png"
        },
        {
            "web_url": "https://imgbox.com/uEvdAiJI",
            "img_url": "https://thumbs2.imgbox.com/7e/a3/uEvdAiJI_t.png",
            "raw_url": "https://images2.imgbox.com/7e/a3/uEvdAiJI_o.png"
        }
    ]
ppkhoa commented 3 weeks ago

Here's the output with --debug flag:

(l4g) ppkhoa@tangelo ~/files/[SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p) $ python3.12 ~/l4g/Upload-Assistant/upload.py /home/ppkhoa/files/\[SubsPlease\]\ Katsute\ Mahou\ Shoujo\ to\ Aku\ wa\ Tekitai\ shiteita\ \(1080p\)/ --imghost imgbox --service CR --trackers MTV --debug trace
Gathering info for [SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita
(1080p)
ID: [SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)
Exporting MediaInfo...
MediaInfo Exported.
Searching PTP for: [SubsPlease] Katsute Mahou Shoujo to Aku wa Tekitai shiteita
- 01 (1080p) [4A272C3D].mkv
Could not find any release matching [SubsPlease] Katsute Mahou Shoujo to Aku wa
Tekitai shiteita - 01 (1080p) [4A272C3D].mkv on PTP
Skipping PTP as no match found
No matches found on any trackers.
Saving Screens... ━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━ 6/11 0:00:19Image is incredibly small, retaking
Saving Screens... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11/11 0:00:00
Edition After Manual Edition:
Repack after Checks:
[16:36:51] get_name cat/type                                        prep.py:2732
           CATEGORY: TV                                             prep.py:2733
           TYPE: WEBDL                                              prep.py:2734
           get_name meta:                                           prep.py:2735
           {                                                        prep.py:2736
               'base_dir': '/home/ppkhoa/l4g/Upload-Assistant',
               'path': '/home/ppkhoa/files/[SubsPlease] Katsute
           Mahou Shoujo to Aku wa Tekitai shiteita (1080p)',
               'screens': 10,
               'category': 'TV',
               'type': 'WEBDL',
               'manual_source': None,
               'resolution': '1080p',
               'tmdb_manual': None,
               'imdb': None,
               'mal': None,
               'tag': '-SubsPlease',
               'service': 'CR',
               'distributor': '',
               'manual_edition': '',
               'season': 'S01',
               'episode': '',
               'manual_date': None,
               'no_season': False,
               'no_year': False,
               'no_aka': False,
               'no_dub': False,
               'no_tag': False,
               'no_seed': False,
               'manual_year': 0,
               'ptp': None,
               'blu': None,
               'aither': None,
               'lst': None,
               'oe': None,
               'hdb': None,
               'desc': None,
               'desclink': None,
               'descfile': None,
               'imghost': 'imgbox',
               'skip_imghost_upload': False,
               'torrenthash': None,
               'nfo': False,
               'keywords': 'based on manga, anime',
               'keep_folder': False,
               'region': None,
               'anon': 0,
               'stream': 0,
               'webdv': False,
               'hardcoded-subs': False,
               'personalrelease': False,
               'dupe': False,
               'debug': True,
               'ffdebug': False,
               'manual': False,
               'max_piece_size': None,
               'nohash': False,
               'rehash': False,
               'draft': False,
               'modq': False,
               'client': None,
               'qbit_tag': None,
               'qbit_cat': None,
               'rtorrent_label': None,
               'trackers': ['MTV'],
               'randomized': 0,
               'unattended': False,
               'vapoursynth': False,
               'cleanup': False,
               'freeleech': 0,
               'uuid': '[SubsPlease] Katsute Mahou Shoujo to Aku wa
           Tekitai shiteita (1080p)',
               'mode': 'cli',
               'isdir': True,
               'is_disc': None,
               'discs': [],
               'filelist': [
                   '/home/ppkhoa/files/[SubsPlease] Katsute Mahou
           Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 01
           (1080p) [4A272C3D].mkv',
                   '/home/ppkhoa/files/[SubsPlease] Katsute Mahou
           Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 02
           (1080p) [C2A5EFC3].mkv',
                   '/home/ppkhoa/files/[SubsPlease] Katsute Mahou
           Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 03
           (1080p) [FDE826D7].mkv',
                   '/home/ppkhoa/files/[SubsPlease] Katsute Mahou
           Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 04
           (1080p) [4BBE0FB4].mkv',
                   '/home/ppkhoa/files/[SubsPlease] Katsute Mahou
           Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 05
           (1080p) [86F4B55C].mkv',
                   '/home/ppkhoa/files/[SubsPlease] Katsute Mahou
           Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 06
           (1080p) [ADDC653E].mkv',
                   '/home/ppkhoa/files/[SubsPlease] Katsute Mahou
           Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 07
           (1080p) [F2F522B4].mkv',
                   '/home/ppkhoa/files/[SubsPlease] Katsute Mahou
           Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 08
           (1080p) [8781F629].mkv',
                   '/home/ppkhoa/files/[SubsPlease] Katsute Mahou
           Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 09
           (1080p) [0CF99918].mkv',
                   '/home/ppkhoa/files/[SubsPlease] Katsute Mahou
           Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 10
           (1080p) [E7AF002D].mkv',
                   '/home/ppkhoa/files/[SubsPlease] Katsute Mahou
           Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 11
           (1080p) [C106AD11].mkv',
                   '/home/ppkhoa/files/[SubsPlease] Katsute Mahou
           Shoujo to Aku wa Tekitai shiteita (1080p)/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita - 12
           (1080p) [8773534F].mkv'
               ],
               'scene': False,
               'search_year': '',
               'mediainfo': {
                   'creatingLibrary': {
                       'name': 'MediaInfoLib',
                       'version': '23.10',
                       'url': 'https://mediaarea.net/MediaInfo'
                   },
                   'media': {
                       '@ref': '/home/ppkhoa/files/[SubsPlease]
           Katsute Mahou Shoujo to Aku wa Tekitai shiteita
           (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa
           Tekitai shiteita - 01 (1080p) [4A272C3D].mkv',
                       'track': [
                           {
                               '@type': 'General',
                               'UniqueID': '0',
                               'VideoCount': '1',
                               'AudioCount': '1',
                               'TextCount': '1',
                               'MenuCount': None,
                               'FileExtension': 'mkv',
                               'Format': 'Matroska',
                               'Format_Version': '4',
                               'FileSize': '768367209',
                               'Duration': '750.051',
                               'OverallBitRate': '8195360',
                               'FrameRate': '23.976',
                               'FrameCount': '17983',
                               'StreamSize': None,
                               'IsStreamable': 'Yes',
                               'File_Created_Date': None,
                               'File_Created_Date_Local': None,
                               'File_Modified_Date': '2024-09-23
           16:17:12 UTC',
                               'File_Modified_Date_Local':
           '2024-09-23 16:17:12',
                               'Encoded_Application':
           'no_variable_data',
                               'Encoded_Library':
           'no_variable_data'
                           },
                           {
                               '@type': 'Video',
                               'StreamOrder': '0',
                               'ID': '1',
                               'UniqueID': '1',
                               'Format': 'AVC',
                               'Format_Profile': 'High',
                               'Format_Level': '4',
                               'Format_Tier': None,
                               'HDR_Format': None,
                               'HDR_Format_Version': None,
                               'HDR_Format_Profile': None,
                               'HDR_Format_Level': None,
                               'HDR_Format_Settings': None,
                               'HDR_Format_Compression': None,
                               'HDR_Format_Compatibility': None,
                               'CodecID': 'V_MPEG4/ISO/AVC',
                               'Duration': '750.042',
                               'BitRate': None,
                               'Width': '1920',
                               'Height': '1080',
                               'Stored_Height': '1088',
                               'Sampled_Width': '1920',
                               'Sampled_Height': '1080',
                               'PixelAspectRatio': '1.000',
                               'DisplayAspectRatio': '1.778',
                               'FrameRate_Mode': 'CFR',
                               'FrameRate': '23.976',
                               'FrameRate_Num': '24000',
                               'FrameRate_Den': '1001',
                               'FrameCount': '17983',
                               'ColorSpace': 'YUV',
                               'ChromaSubsampling': '4:2:0',
                               'ChromaSubsampling_Position': None,
                               'BitDepth': '8',
                               'Delay': '0.000',
                               'Delay_Source': 'Container',
                               'StreamSize': None,
                               'Language': None,
                               'Default': 'Yes',
                               'Forced': 'No',
                               'colour_description_present': 'Yes',
                               'colour_description_present_Source':
           'Container / Stream',
                               'colour_range': 'Limited',
                               'colour_range_Source': 'Stream',
                               'colour_primaries': 'BT.709',
                               'colour_primaries_Source':
           'Container / Stream',
                               'transfer_characteristics':
           'BT.709',
                               'transfer_characteristics_Source':
           'Container / Stream',
                               'matrix_coefficients': 'BT.709',
                               'matrix_coefficients_Source':
           'Container / Stream',
                               'MasteringDisplay_ColorPrimaries':
           None,
                               'MasteringDisplay_ColorPrimaries_Sou
           rce': None,
                               'MasteringDisplay_Luminance': None,
                               'MasteringDisplay_Luminance_Source':
           None,
                               'MaxCLL': None,
                               'MaxCLL_Source': None,
                               'MaxFALL': None,
                               'MaxFALL_Source': None
                           },
                           {
                               '@type': 'Audio',
                               'StreamOrder': '1',
                               'ID': '2',
                               'UniqueID': '2',
                               'Format': 'AAC',
                               'Format_Commercial_IfAny': None,
                               'Format_Settings_Endianness': None,
                               'Format_AdditionalFeatures': 'LC',
                               'CodecID': 'A_AAC-2',
                               'Duration': '750.051',
                               'BitRate_Mode': None,
                               'BitRate': None,
                               'Channels': '2',
                               'ChannelPositions': 'Front: L R',
                               'ChannelLayout': 'L R',
                               'SamplesPerFrame': '1024',
                               'SamplingRate': '44100',
                               'SamplingCount': '33077249',
                               'FrameRate': '43.066',
                               'FrameCount': None,
                               'Compression_Mode': 'Lossy',
                               'Delay': '0.000',
                               'Delay_Source': 'Container',
                               'Video_Delay': '0.000',
                               'StreamSize': None,
                               'Language': 'ja',
                               'ServiceKind': None,
                               'Default': 'Yes',
                               'Forced': 'No',
                               'extra': {
                                   'Statistics_Tags_Issue':
           'no_variable_data 1970-01-01 00:00:00 / no_variable_data
           2010-02-22 21:41:29',
                                   'FromStats_BitRate': '128000',
                                   'FromStats_Duration':
           '00:12:30.051000000',
                                   'FromStats_FrameCount': '32302',
                                   'FromStats_StreamSize':
           '12000816',
                                   'SamplingCount_Source':
           'General_Duration',
                                   'Duration_Source':
           'General_Duration'
                               }
                           },
                           {
                               '@type': 'Text',
                               '@typeorder': None,
                               'StreamOrder': '2',
                               'ID': '3',
                               'UniqueID': '3',
                               'Format': 'ASS',
                               'CodecID': 'S_TEXT/ASS',
                               'Duration': None,
                               'BitRate': None,
                               'FrameRate': None,
                               'FrameCount': None,
                               'ElementCount': None,
                               'StreamSize': None,
                               'Title': 'English subs',
                               'Language': 'en',
                               'Default': 'Yes',
                               'Forced': 'No'
                           }
                       ]
                   }
               },
               'sd': 0,
               'filename': 'Katsute Mahou Shoujo to Aku wa Tekitai
           shiteita',
               'bdinfo': None,
               'skip_gen_desc': True,
               'description': None,
               'tmdb': 239764,
               'title': 'The Magical Girl and the Evil Lieutenant
           Used to Be Archenemies',
               'year': 2024,
               'imdb_id': '30970523',
               'tvdb_id': 442367,
               'aka': ' AKA Katsute Mahou Shoujo to Aku wa Tekitai
           Shite Ita.',
               'original_language': 'ja',
               'original_title':
           'かつて魔法少女と悪は敵対していた。',
               'genres': 'Animation, Comedy',
               'tmdb_directors': [],
               'mal_id': 57217,
               'anime': True,
               'poster':
           'https://image.tmdb.org/t/p/original/grYmorVfLV2D2tYJBuB
           pRZ8n9Pq.jpg',
               'overview': 'An evil organization invades and
           destroys everything in its path. The brains of the
           brutal operation is the king’s right-hand man, an evil
           lieutenant named Mira. Everything changes when a magical
           girl named Byakuya Mimori tries to stop the evil group
           in their tracks. When Mira confronts her, he knows it’s
           love at first sight. What will become of Mira and
           Byakuya, stuck between orders and love?',
               'tmdb_type': 'Scripted',
               'runtime': 12,
               'tvmaze_id': 77847,
               'imdb_info': {
                   'title': 'The Magical Girl and the Evil
           Lieutenant Used to Be Archenemies',
                   'year': 2024,
                   'aka': 'Katsute Mahô Shôjo to Aku wa Tekitai
           Shiteita.',
                   'type': 'tv series',
                   'imdbID': '30970523',
                   'runtime': '12',
                   'cover':
           'https://m.media-amazon.com/images/M/MV5BNTgyMGRlYjUtODc
           wZi00ZTlmLWJjMTgtODlhMmY4NGEwMGFhXkEyXkFqcGc@._V1_FMjpg_
           UX750_.jpg',
                   'plot': 'The strategist of an evil organization
           falls for the magical girl fighting against the
           organization.',
                   'genres': 'Animation, Comedy, Fantasy, Romance',
                   'original_language': 'ja'
               },
               'tv_pack': 1,
               'season_int': 1,
               'episode_int': 0,
               'episode_title_storage': '',
               'part': '',
               'video': '/home/ppkhoa/files/[SubsPlease] Katsute
           Mahou Shoujo to Aku wa Tekitai shiteita
           (1080p)/[SubsPlease] Katsute Mahou Shoujo to Aku wa
           Tekitai shiteita - 01 (1080p) [4A272C3D].mkv',
               'audio': 'AAC 2.0',
               'channels': '2.0',
               'has_commentary': False,
               '3D': '',
               'source': 'Web',
               'uhd': '',
               'hdr': '',
               'video_encode': ' H.264',
               'video_codec': 'AVC',
               'has_encode_settings': False,
               'bit_depth': '8',
               'edition': '',
               'repack': ''
           }
Uploading Screens to Imgbox...
Uploading Screens to Imgbox... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10/10 0:00:00
[
    {
        'web_url': 'https://imgbox.com/u3kKDMM6',
        'img_url': 'https://thumbs2.imgbox.com/a5/91/u3kKDMM6_t.png',
        'raw_url': 'https://images2.imgbox.com/a5/91/u3kKDMM6_o.png'
    },
    {
        'web_url': 'https://imgbox.com/IXh2P7j8',
        'img_url': 'https://thumbs2.imgbox.com/7d/1c/IXh2P7j8_t.png',
        'raw_url': 'https://images2.imgbox.com/7d/1c/IXh2P7j8_o.png'
    },
    {
        'web_url': 'https://imgbox.com/hiXWDI07',
        'img_url': 'https://thumbs2.imgbox.com/73/17/hiXWDI07_t.png',
        'raw_url': 'https://images2.imgbox.com/73/17/hiXWDI07_o.png'
    },
    {
        'web_url': 'https://imgbox.com/kk7ms1aw',
        'img_url': 'https://thumbs2.imgbox.com/00/5c/kk7ms1aw_t.png',
        'raw_url': 'https://images2.imgbox.com/00/5c/kk7ms1aw_o.png'
    },
    {
        'web_url': 'https://imgbox.com/dA5cmU28',
        'img_url': 'https://thumbs2.imgbox.com/1f/0a/dA5cmU28_t.png',
        'raw_url': 'https://images2.imgbox.com/1f/0a/dA5cmU28_o.png'
    },
    {
        'web_url': 'https://imgbox.com/PdWHt5EG',
        'img_url': 'https://thumbs2.imgbox.com/9f/d4/PdWHt5EG_t.png',
        'raw_url': 'https://images2.imgbox.com/9f/d4/PdWHt5EG_o.png'
    },
    {
        'web_url': 'https://imgbox.com/zUaxXNLq',
        'img_url': 'https://thumbs2.imgbox.com/67/d7/zUaxXNLq_t.png',
        'raw_url': 'https://images2.imgbox.com/67/d7/zUaxXNLq_o.png'
    },
    {
        'web_url': 'https://imgbox.com/1XvUa7ZY',
        'img_url': 'https://thumbs2.imgbox.com/70/ad/1XvUa7ZY_t.png',
        'raw_url': 'https://images2.imgbox.com/70/ad/1XvUa7ZY_o.png'
    },
    {
        'web_url': 'https://imgbox.com/TjQlKVD3',
        'img_url': 'https://thumbs2.imgbox.com/61/9c/TjQlKVD3_t.png',
        'raw_url': 'https://images2.imgbox.com/61/9c/TjQlKVD3_o.png'
    },
    {
        'web_url': 'https://imgbox.com/uEvdAiJI',
        'img_url': 'https://thumbs2.imgbox.com/7e/a3/uEvdAiJI_t.png',
        'raw_url': 'https://images2.imgbox.com/7e/a3/uEvdAiJI_o.png'
    }
]
DEBUG: Trueeated
Prep material saved to /home/ppkhoa/l4g/Upload-Assistant/tmp/[SubsPlease]
Katsute Mahou Shoujo to Aku wa Tekitai shiteita (1080p)

Database Info
--------------

Title: The Magical Girl and the Evil Lieutenant Used to Be Archenemies (2024)

Overview: An evil organization invades and destroys everything in its path. The brains of the brutal operation is the king’s right-hand man, an evil lieutenant named Mira. Everything changes when a magical girl named Byakuya Mimori tries to stop the evil group in their tracks. When Mira confronts her, he knows it’s love at first sight. What will become of Mira and Byakuya, stuck between orders and love?

Category: TV
TMDB: https://www.themoviedb.org/tv/239764
IMDB: https://www.imdb.com/title/tt30970523
TVDB: https://www.thetvdb.com/?id=442367&tab=series
MAL : https://myanimelist.net/anime/57217

1080p / WEBDL / SubsPlease

Potentially missing information:
---------------------------------

--edition | Special Edition/Release

Is this correct?
-----------------

Name: The Magical Girl and the Evil Lieutenant Used to Be Archenemies AKA Katsute Mahou Shoujo to Aku wa Tekitai Shite Ita. S01 1080p CR WEB-DL AAC 2.0 H.264-SubsPlease
:: Correct? (y/N)
> y
:: Upload to MTV? (DEBUG) (y/N)
> y
Uploading to MTV
[16:39:00] Validate Cookies:                                          MTV.py:479
           {                                                          MTV.py:480
               'cid':
           '<key>',
               'sid':
           '<key>'
           }
           https://www.morethantv.me/index.php                        MTV.py:481
Searching for existing torrents on site...
[16:39:02] Pre-filtered dupes                                      COMMON.py:354
           [                                                       COMMON.py:355
               'The.Magical.Girl.and.the.Evil.Lieutenant.Used.to.B
           e.Archenemies.S01E01.1080p.WEB.H264-KAWAII',
               'The.Magical.Girl.and.the.Evil.Lieutenant.Used.to.B
           e.Archenemies.S01E02.1080p.WEB.H264-KAWAII',
               'The.Magical.Girl.and.the.Evil.Lieutenant.Used.to.B
           e.Archenemies.S01E03.1080p.WEB.H264-KAWAII',
               'The.Magical.Girl.and.the.Evil.Lieutenant.Used.to.B
           e.Archenemies.S01E04.1080p.WEB.H264-KAWAII',
               'The.Magical.Girl.and.the.Evil.Lieutenant.Used.to.B
           e.Archenemies.S01E05.1080p.WEB.H264-KAWAII',
               'The.Magical.Girl.And.The.Evil.Lieutenant.Used.To.B
           e.Archenemies.S01E05.720p.WEB.H264-SKYANiME',
               'The.Magical.Girl.And.The.Evil.Lieutenant.Used.To.B
           e.Archenemies.S01E04.720p.WEB.H264-SKYANiME',
               'The.Magical.Girl.And.The.Evil.Lieutenant.Used.To.B
           e.Archenemies.S01E02.720p.WEB.H264-SKYANiME',
               'The.Magical.Girl.And.The.Evil.Lieutenant.Used.To.B
           e.Archenemies.S01E03.720p.WEB.H264-SKYANiME',
               'The.Magical.Girl.And.The.Evil.Lieutenant.Used.To.B
           e.Archenemies.S01E01.720p.WEB.H264-SKYANiME',
               'The.Magical.Girl.and.the.Evil.Lieutenant.Used.to.B
           e.Archenemies.S01E06.1080p.WEB.H264-KAWAII',
               'The.Magical.Girl.and.the.Evil.Lieutenant.Used.to.B
           e.Archenemies.S01E07.1080p.WEB.H264-KAWAII',
               'The.Magical.Girl.and.the.Evil.Lieutenant.Used.to.B
           e.Archenemies.S01E08.1080p.WEB.H264-KAWAII',
               'The.Magical.Girl.and.the.Evil.Lieutenant.Used.to.B
           e.Archenemies.S01E09.1080p.WEB.H264-KAWAII',
               'The.Magical.Girl.and.the.Evil.Lieutenant.Used.to.B
           e.Archenemies.S01E10.1080p.WEB.H264-KAWAII',
               'The.Magical.Girl.and.the.Evil.Lieutenant.Used.to.B
           e.Archenemies.S01E11.1080p.WEB.H264-KAWAII',
               'The.Magical.Girl.and.the.Evil.Lieutenant.Used.to.B
           e.Archenemies.S01.1080p.WEB.H264-SubsPlease'
           ]
No dupes found
Images are already hosted on an approved image host. Skipping re-upload.
Traceback (most recent call last):
  File "/home/ppkhoa/l4g/Upload-Assistant/upload.py", line 633, in <module>
    asyncio.run(do_the_thing(base_dir))  # Pass the correct base_dir value here
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/ppkhoa/l4g/Upload-Assistant/upload.py", line 367, in do_the_thing
    await tracker_class.upload(meta)
  File "/mnt/nvme1n1/ppkhoa/l4g/Upload-Assistant/src/trackers/MTV.py", line 45, in upload
    await self.upload_with_retry(meta, cookiefile, common)
  File "/mnt/nvme1n1/ppkhoa/l4g/Upload-Assistant/src/trackers/MTV.py", line 123, in upload_with_retry
    des_tags = await self.get_tags(meta)
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/nvme1n1/ppkhoa/l4g/Upload-Assistant/src/trackers/MTV.py", line 372, in get_tags
    if str(meta['service_longname']) != "":
           ~~~~^^^^^^^^^^^^^^^^^^^^
Audionut commented 3 weeks ago

Feel free to reopen this if necessary, but I'm mostly confident I fixed the issue. Thanks for bringing to my attention.