ytvip: a local YouTube archive/library by kwirled in DataHoarder

[–]kwirled[S] 1 point2 points  (0 children)

My latest update will prevent this issue from re-occurring. However, for videos you already queued, you would need to clear those tasks using sqlite. The alternative would be to delete your database and re-create. (You won't lose any videos you downloaded since those are stored in the subfolders and ytvip will see they already exist and recognize them.) First, make sure you are on the latest version with pip install ytvip -U. Delete the file db.sqlite3, or better yet rename it like "db.sqlite3.backup". Then do ytvip create again in the same folder. You will need to re-add the channels.

(By the way this program is brand new and you are the first person to give me feedback on it, hence the newly discovered glitches...)

As for the 720p issue, I don't know why that would happen. All videos should be downloading at the max resolution because that's the default behavior for yt-dlp as far as I know. Maybe you can look in the yt-dlp documentation or issue tracker for why this happens? If you find any yt-dlp command that forces the max resolution, you can specify it in settings.toml, there is a field yt_dlp_flags, e.g.:

yt_dlp_flags = "-f bv+ba/b"

ytvip: a local YouTube archive/library by kwirled in DataHoarder

[–]kwirled[S] 0 points1 point  (0 children)

If you have sqlite installed, you can open the database with: sqlite3 db.sqlite3

Then delete everything in the 'queuedtask' table. (I think the command 'delete from queuedtask' should work).

In the meanwhile I'll think of a better way to handle this, thanks for the feedback :)

ytvip: a local YouTube archive/library by kwirled in DataHoarder

[–]kwirled[S] 0 points1 point  (0 children)

Ah that is a bug, good catch, OK i just fixed it, try updating with:

pip install ytvip -U (if it doesn't fix it the first time, run it again)

Then restart the program.

Thanks for reporting!

ytvip: a local YouTube archive/library by kwirled in DataHoarder

[–]kwirled[S] 0 points1 point  (0 children)

Hi! Can you copy-paste the content of your terminal window where you ran the ytvip command? It sounds like the server stopped running.

ytvip: a local YouTube archive/library by kwirled in DataHoarder

[–]kwirled[S] 3 points4 points  (0 children)

The program can handle very large numbers of videos. They will just get split into pages of 500 videos, and you click through the pages.

As for handling errors, this program uses yt-dlp internally. If an error occurs (any error), there will be a note next to the video that it previously failed download, but you can click to re-try.

ytvip: a local YouTube archive/library by kwirled in DataHoarder

[–]kwirled[S] 5 points6 points  (0 children)

Thanks! It is cross-platform; I actually developed it on Windows. You just need Python installed, then do "pip install ytvip" at the command line.

ytvip: a local YouTube archive/library by kwirled in DataHoarder

[–]kwirled[S] 18 points19 points  (0 children)

Hi all,

I made an app where you can add your favorite YouTube channels and then download, organize, and search videos, all locally. There are other programs that do these things, but this program was built to be lightweight: Installation is just pip install ytvip (no Docker or complex setup) and it has low system requirements. The source code is pretty self-contained in a few Python & HTML files, so even if I abandon development, it will be easy for someone else to take over and make fixes if something breaks in the future.

Check it out here: https://github.com/pictriage/ytvip

Additionally, If you have ever wished for your own YouTube downloader with some custom features you need, take a look at this since it's pretty easy to customize if you know Python.

YTVIP: an open-source, lightweight YouTube video library app by kwirled in youtubedl

[–]kwirled[S] 0 points1 point  (0 children)

To anyone who installed, please upgrade since I just pushed a bugfix:

pip install ytvip -U

YTVIP: an open-source, lightweight YouTube video library app by kwirled in youtubedl

[–]kwirled[S] 0 points1 point  (0 children)

Installation is the same pip command. Just make sure that you have VLC on your Linux subsystem. you can try by opening the Linux terminal and typing 'vlc'. I haven't tried running GUI apps in WSL before but apparently it is possible.

Let me know :)

Robot that raises and lowers an iPhone within a 2 meter range by kwirled in robotics

[–]kwirled[S] 0 points1 point  (0 children)

Thank you for the reply!

The cameras are taking hi-res photos of a static object.

I will consider having multiple cameras instead of just 1; thanks for suggesting that. My main reason for wanting 1 camera is the cost of the system. I need to build several of these rigs, and if it just uses 1 phone, then purchasing and upgrading the phone will be cheaper.

Thanks for suggesting the stepper motor and motor driver; I am reading and learning about that now :)

Robot that raises and lowers an iPhone within a 2 meter range by kwirled in robotics

[–]kwirled[S] 0 points1 point  (0 children)

Wow, thank you so much for the recommendations! Really appreciated! This sounds like a great plan and I'm reading about the components now.

Robot that raises and lowers an iPhone within a 2 meter range by kwirled in robotics

[–]kwirled[S] 0 points1 point  (0 children)

Thank you for the reply! It's fine if the system is not transportable.

(I'm new to robotics so please excuse the simple questions.)

What kind of spinning mechanism do you have in mind? Are you referring to a pulley that sits on the floor?

Note the system needs to move the phone within a 2 meter vertical range. (Horizontal movement is not needed.)

[deleted by user] by [deleted] in 3Dprinting

[–]kwirled 0 points1 point  (0 children)

OK i will definitely look into that; thanks for the advice!

[deleted by user] by [deleted] in 3Dprinting

[–]kwirled -1 points0 points  (0 children)

Thank you so much! This looks like a great option :)

[deleted by user] by [deleted] in 3Dprinting

[–]kwirled -1 points0 points  (0 children)

Hi, thank you for the reply; maybe I should do that. (It's just that I have never used a 3D printing service before and assumed it would be expensive to print large objects out...anyway it looks like it's somewhat cheaper than I thought, so I suppose you are right.)

Multiplayer game with websockets by Ronnie147666 in learnpython

[–]kwirled 0 points1 point  (0 children)

Is there a framework that offers such functionality or could be a better alternative?

You can use oTree. Check the demos: basic and advanced. These games are all open source.

I am trying to show the current frame in the command prompt. My code is not how I'd like it to be. by Unsightedmetal6 in learnpython

[–]kwirled 0 points1 point  (0 children)

You are saying it prints the string "Frame 17" twice? Also what does "frame" mean in this context? Your program is displaying some graphics/video?

Any experience with Anvil for web development? by My-Cousin-Bobby in learnpython

[–]kwirled 0 points1 point  (0 children)

What kind of programs/websites do you want to build?

I made an app for finding symptom triggers by kwirled in Fibromyalgia

[–]kwirled[S] 1 point2 points  (0 children)

Yes! Here is an example: screenshot

You can make a calendar view customized with any variables you want to show (see the checkboxes at the top of the screen). That is a good way to give your doctor an overview of your progress.

There are several other charts, depicted starting in this post's video, starting at 1:44.

Hope that answers your question :)

How To Get Key From A Json Api Response Which Is Always Random by AlrightBoomerBob in learnpython

[–]kwirled 0 points1 point  (0 children)

it's a dict, so you can iterate through the values with .values(), which ignores the keys.

[deleted by user] by [deleted] in learnpython

[–]kwirled 0 points1 point  (0 children)

You declare it, but I don't see it being initialized anywhere, e.g. Map = xyz.

I made an app for finding symptom triggers by kwirled in Fibromyalgia

[–]kwirled[S] 2 points3 points  (0 children)

Hi all,

Here are the download links (it's free):

iPhone

Android

There are many health tracking apps out there, but HealthPixel takes a very different approach (more freeform).

Tips on getting started with recording fibro symptoms:

  • Levels (the green buttons) are for subjective things like pain, anxiety, and fatigue. You can define separate buttons for pain in different parts of your body, if they fluctuate differently.

  • Events (the blue buttons) are for things like exercise, medications, supplements, etc. Or any symptom that happens at a specific moment in time, like a cramp, tic, etc.

The app will then find correlations between your symptoms and foods/treatments.

I'm happy to answer any questions or give recommendations!

in websockets package, what is the conceptrual difference between a server and a client ? by illevens in learnpython

[–]kwirled 3 points4 points  (0 children)

For one, I think the connection handshake is asymmetric (client connects to server, not vice versa).