Esca

joined 1 year ago
[–] Esca@lemmy.one 9 points 5 months ago

Dude, I have YouTube music and I literally am not able to change or upgrade to YouTube premium. They don't let me, it links me to a useless empty page with no options. I don't even know what the price is like. This whole subscription thing is a mess.

I solved it by using YouTube revanced and have all premium functions and more. On desktop I wrote my own player. It's so much better because their website is a mess. At this point do I really want to pay for features I know I won't use?

[–] Esca@lemmy.one 19 points 5 months ago* (last edited 5 months ago) (3 children)

Yep, the api in jellyfin is quite easy. Someone already sent the link to the docs. The specific endpoint you want is Sessions. You need to get yourself an api_key which you can get in the admin panel. Here is an example code in Python to give you an idea on how to use the api:

#!/usr/bin/env python3

import requests

response = requests.get("http://your_jellyfin_server:8096/Sessions?api_key=your_api_key")
json = response.json()

currently_watching = []
for session in json:
    if "NowPlayingItem" in session:
        currently_watching.append(session["UserName"])

if currently_watching:
    print("Currently watching: " + ", ".join(currently_watching))
else:
    print("Nobody is watching")

If it is indeed Python that you want to use, you can adjust it to your needs depending on what you want it to output.

Basically, it is as simple as looping through every current session and checking if they have a NowPlayingItem key which is only present when they have a video open (both playing and paused). It works very reliability, I am using it to automatically change my lights when I watch a long video or movie.

[–] Esca@lemmy.one 6 points 5 months ago (2 children)

Both this and Lurch's comment. It gives an answer without actually answering it, it even hallucinates broken links.

[–] Esca@lemmy.one 6 points 5 months ago

Any good photographer will shoot in raw. And in order to get a picture it has to be processed on a computer, there is no way around it. I wonder how that's supposed to work with these watermarks.

[–] Esca@lemmy.one 1 points 6 months ago (1 children)

The --delete flag is already in there so it should empty the camera_backup folder, but the robocopy will copy every single photo back into it the next run.

[–] Esca@lemmy.one 1 points 6 months ago* (last edited 6 months ago) (3 children)

Ah, I am not familiar at all with Windows, so I honestly wouldn't know. Does the Immich CLI even work on Windows?

But going off by the comments and the parts I understand, I guess it could kinda work, assuming that the arguments are all correct. Although, it will try to upload all photos every time, regardless if Immich already has them or not. Which is not ideal but I believe Immich will filter out duplicated photos. But it's worth checking if it's indeed smart enough to do that.

For the Immich command it will upload the files to an album called "Camera_Backup". Not sure if that's what you want. If not, then remove the -a flag. If you want to upload it to a specific album, then instead add '-A albumname' (edit: I realize I might be wrong here. If you have multiple folders in Syncthing you're backing up it will work differently)

[–] Esca@lemmy.one 1 points 6 months ago (5 children)

I understand you. I also don't use the auto upload feature as it's creating more problems for me to solve than what it fixes. I already had Syncthing running anyway so I currently use that combo (except I manually sort through my photos on a semi-weekly basis before I upload it to Immich).

If you want, I can cook up a little Python script you could stick into Cron to do all the tasks you described. I haven't worked with the Immich CLI yet but I'm sure I can figure it out. Send me a message if you're interested. I will probably use it myself as well.

[–] Esca@lemmy.one 8 points 7 months ago (1 children)

Yeah but instead of a function you just make it an alias.

[–] Esca@lemmy.one 18 points 7 months ago (6 children)

Isn't this the same effect as just running 'sudo !!' ?

[–] Esca@lemmy.one 2 points 10 months ago* (last edited 9 months ago) (2 children)

I love that idea, and I'd love to implement that. But I honestly can never figure out how people are working with services that enables the user to change settings (for example, to set their location to get their local weather) while still maintaining a read-only system.

[–] Esca@lemmy.one 14 points 11 months ago (1 children)

With ublock origin I haven't encountered popups for weeks. They update pretty much every day to keep on top of the YouTube changes.

The only time I really got popups was when another extention I had was making ad changing modifications to YouTube which I didn't realize at that time.

[–] Esca@lemmy.one 15 points 11 months ago (1 children)

But if you're worried about locale, you can't assume people use the string "Saturday" to describe Saturday either. That solution only works in English.

view more: next ›