Inrixia / Floatplane-Downloader

Project for automatically organizing and downloading Floatplane videos for plex.
https://monitor.spookelton.net/public-dashboards/db0aec66747b4950b01b128916eb737e
GNU Affero General Public License v3.0
152 stars 41 forks source link

[Issue] File failing to download #145

Closed TakenMC closed 1 year ago

TakenMC commented 1 year ago

When I would download certain videos I would get the error

ENOENT: no such file or directory, mkdir 'C:\

The videos ik it happens for is

SC: Always wanted a Mac? Try this. - M2 Mac Mini
Should you avoid buying used mining GPUs? - 19 Cards Tested

Not sure what else I can provide to help. Also normal way of downloading still works

Inrixia commented 1 year ago

Hmm, I cant reproduce the issue. Can you post your settings.json and also explain exactly what you are doing to cause it including exactly when it happens?

TakenMC commented 1 year ago
0% | ERR: ENOENT: no such file or directory, mkdir 'C:\Users\****\floatplane\videos\2023Y02M05D - Linus Tech Tips - AliExpress Wouldn't Lie... Right? Asus Zenbook Duo Knockoff' Max Retries! 3/3

this is the entire message that shows up in the terminal

I don't do anything special but run the exe file provided and some videos work and some don't

Bellow is my settings.json

{
    "runQuickstartPrompts": false,
    "downloadThreads": 2,
    "floatplane": {
        "videosToSearch": 6,
        "forceFullSearch": false,
        "videoResolution": "1080",
        "waitForNewVideos": true,
        "_availableResolutions": [
            "360",
            "720",
            "1080",
            "2160"
        ],
        "downloadEdge": "",
        "retries": 3
    },
    "_filePathFormattingOPTIONS": [
        "%channelTitle%",
        "%videoTitle%",
        "%year%",
        "%month%",
        "%day%",
        "%hour%",
        "%minute%",
        "%second%"
    ],
    "filePathFormatting": "./videos/%year%Y%month%M%day%D - %channelTitle% - %videoTitle%/%videoTitle%",
    "extras": {
        "stripSubchannelPrefix": true,
        "downloadArtwork": true,
        "saveNfo": true
    },
    "artworkSuffix": "",
    "plex": {
        "sectionsToUpdate": [],
        "token": "",
        "enabled": false
    },
    "channelAliases": {
        "linus tech tips": "Linus Tech Tips",
        "ltt supporter (og)": "Linus Tech Tips",
        "ltt supporter (1080p)": "Linus Tech Tips",
        "ltt supporter plus": "Linus Tech Tips"
    },
    "subscriptions": {
        "59f94c0bdd241b70349eb72b": {
            "creatorId": "59f94c0bdd241b70349eb72b",
            "plan": "LTT Supporter (1080p)",
            "skip": false,
            "channels": {
                "_default": {
                    "title": "Linus Tech Tips",
                    "skip": false,
                    "identifiers": false,
                    "consoleColor": "\u001b[38;5;208m",
                    "daysToKeepVideos": 5
                },
                "Mac Address": {
                    "title": "Mac Address",
                    "skip": true,
                    "identifiers": [
                        {
                            "check": "MA: ",
                            "type": "title"
                        }
                    ],
                    "consoleColor": "\u001b[38;5;189m",
                    "daysToKeepVideos": -1
                },
                "Floatplane Exclusive": {
                    "title": "Floatplane Exclusive",
                    "skip": false,
                    "identifiers": [
                        {
                            "check": "FP Exclusive: ",
                            "type": "title"
                        }
                    ],
                    "consoleColor": "\u001b[38;5;200m",
                    "daysToKeepVideos": 5
                },
                "TalkLinked": {
                    "title": "TalkLinked",
                    "skip": false,
                    "identifiers": [
                        {
                            "check": "talklinked",
                            "type": "title"
                        }
                    ],
                    "consoleColor": "\u001b[36m",
                    "daysToKeepVideos": 5
                },
                "TechLinked": {
                    "title": "TechLinked",
                    "skip": false,
                    "identifiers": [
                        {
                            "check": "TL: ",
                            "type": "title"
                        }
                    ],
                    "consoleColor": "\u001b[38;5;14m",
                    "daysToKeepVideos": 5
                },
                "TechLinked Shorts": {
                    "title": "TechLinked Shorts",
                    "skip": false,
                    "identifiers": [
                        {
                            "check": "TL Short: ",
                            "type": "title"
                        }
                    ],
                    "consoleColor": "\u001b[38;5;14m",
                    "daysToKeepVideos": 5
                },
                "TechQuickie": {
                    "title": "TechQuickie",
                    "skip": false,
                    "identifiers": [
                        {
                            "check": "TQ: ",
                            "type": "title"
                        }
                    ],
                    "consoleColor": "\u001b[38;5;153m",
                    "daysToKeepVideos": 5
                },
                "Theyre Just Movies": {
                    "title": "Theyre Just Movies",
                    "skip": true,
                    "identifiers": [
                        {
                            "check": "TJM: ",
                            "type": "title"
                        },
                        {
                            "check": "CC: ",
                            "type": "title"
                        },
                        {
                            "check": "'Carpool Critics': ",
                            "type": "title"
                        },
                        {
                            "check": "Movie Podcast: ",
                            "type": "title"
                        },
                        {
                            "check": "Movie Podcast : ",
                            "type": "title"
                        }
                    ],
                    "daysToKeepVideos": -1
                },
                "ShortCircuit": {
                    "title": "ShortCircuit",
                    "skip": false,
                    "identifiers": [
                        {
                            "check": "SC: ",
                            "type": "title"
                        }
                    ],
                    "daysToKeepVideos": 5
                },
                "ChannelSuperFun": {
                    "title": "ChannelSuperFun",
                    "skip": false,
                    "identifiers": [
                        {
                            "check": "CSF: ",
                            "type": "title"
                        }
                    ],
                    "consoleColor": "\u001b[38;5;220m",
                    "daysToKeepVideos": 5
                },
                "The WAN Show": {
                    "title": "The WAN Show",
                    "skip": true,
                    "identifiers": [
                        {
                            "check": "WAN Show",
                            "type": "title"
                        }
                    ],
                    "consoleColor": "\u001b[38;5;208m",
                    "daysToKeepVideos": -1
                },
                "LMG Livestream VODs": {
                    "title": "LMG Livestream VODs",
                    "skip": true,
                    "identifiers": [
                        {
                            "check": "Livestream VOD – ",
                            "type": "title"
                        }
                    ],
                    "consoleColor": "\u001b[38;5;208m",
                    "daysToKeepVideos": -1
                }
            }
        }
    },
    "postProcessingCommand": "",
    "considerAllNonPartialDownloaded": false
}
Inrixia commented 1 year ago

Hmm, is there anything special that your user directory is named?

Can you try using the latest dev build and see if this still happens?

TakenMC commented 1 year ago

nope the user dir is 4 letters with first being capital

I'll try the dev build in a bit, at college rn.

TakenMC commented 1 year ago

Nope still same error on same video I even tried running as admin but no luck

Inrixia commented 1 year ago

Ah your issue is that your filePathFormatting is wrong.

"filePathFormatting": "./videos/%year%Y%month%M%day%D - %channelTitle% - %videoTitle%/%videoTitle%",

should be

"filePathFormatting": "./videos/%year%Y%month%M%day%D - %channelTitle% - %videoTitle%",

Is this intentional? The extra / is breaking path generation.

Inrixia commented 1 year ago

That said I suggest sticking with the default

"filePathFormatting": "./videos/%channelTitle%/%channelTitle% - S%year%E%month%%day%%hour%%minute%%second% - %videoTitle%",
TakenMC commented 1 year ago

Oh ok will chnage it Tho it is still a bug

TakenMC commented 1 year ago

image

Inrixia commented 1 year ago

Thanks for catching that. Try again with the latest dev build.

Also Ill look into how I can fix the path parsing to avoid the issue so that the path you gave still works. Please let me know if changing it works for now though.

Inrixia commented 1 year ago

@TakenMC This should now be fixed for any path format you want to try and use. Please give it a try using your original desired path and lmk if anything breaks.

TakenMC commented 1 year ago

All is working with the my old path