• 0 Posts
  • 19 Comments
Joined 1 year ago
cake
Cake day: June 6th, 2023

help-circle
  • 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?


  • 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.onetoaww@lemmy.worldMajestic
    link
    fedilink
    English
    arrow-up
    3
    ·
    11 months ago

    They have two layers. In the summer you want to brush out the insulting undercoat, but leave the topcoat as it protects against sunlight. A shaved husky will overheat in the sun and can easily get skin cancer! It also doesn’t grow back properly. The husky in this picture will never have a normal coat again as it has his fur ruined for the rest of his life.

    There isn’t any valid medical reason that requires to shave a husky entirely. Only people who don’t understand how their coat work do it. It is basically animal abuse and it makes me sad every time I see this picture.