Coder Social home page Coder Social logo

univrsal / tuna Goto Github PK

View Code? Open in Web Editor NEW
679.0 13.0 57.0 7.91 MB

Song information plugin for obs-studio

License: GNU General Public License v2.0

CMake 15.80% C++ 73.37% Objective-C++ 0.62% HTML 8.61% Shell 1.61%
mpd music nowplaying obs obs-plugin spotify vlc

tuna's Introduction

header

Push to master

tuna

Get song info from right within obs.

Currently supports

Lyrics for the lyrics html overlay are served via lrclib hosted at lyrics.vrsal.cc.

hey tuna

Translators

Additional credits

tuna's People

Contributors

cooliguay avatar cyame avatar dalinarduck avatar den5-tech avatar fritz-fritz avatar gabrielpastori1 avatar kailee2588 avatar librav3 avatar mihawk90 avatar mjkey avatar nickcao avatar orion78fr avatar sim590 avatar tytan652 avatar univrsal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tuna's Issues

Spotify Advertisements break formatting

If you have a song format set to "%m %t" everything is working fine until Spotify plays an ad.
It will then literally show "m t" instead of the Song Placeholder.

Line break broken?

cant get line break to work on version 1.4.2
worked fine on 1.4.1
the other text formats still work
using VLC media source

Problem Launching OBS

When I launch OBS it says "OBS seems to have updated, which means Tuna's VLC source support could potentially crash until tuna is updated. Do you still want to leave it enabled" and whether I pick yes or no OBS never loads up and doesn't even show up in the task manager.

Dock does not work with Spotify Premium

I'm trying with spotify premium and can't control the music from the dock.
The song title is displayed correctly.

With VLC the dock works fine.

And... should the volume bar be shown with spotify or VLC?

image

Release assets unexpectedly changed

Hello,

@ aurifier on AUR just noticed that the package was failing to build. Since the package worked perfectly fine for 1.4.2 before, this can only be explained by someone updating the release assets for 1.4.2.

In case this is correct, I'd like to raise awareness that such changes can cause quite some problems downstream. It's not critical since the AUR checks the file's hash before using it, but it's just annoying when a package breaks without anything to notify the maintainer. Even small changes should be made by pushing a new release, for example that one time when i forgot to bump the version number before tagging.

Tuna not loaded: No such file or directory

Using Kubuntu 19.04, running OBS Studio 24.0.3 (flatpak). Tuna isn't loaded, libjansson4 and libmpdclient2 are installed. Any other dependencies needed? I see no reason why it shouldn't load with the flatpak version.

16:23:03.620: os_dlopen(/home/treier57lol/.var/app/com.obsproject.Studio/config/obs-studio/plugins/tuna/bin/64bit/tuna.so->/home/treier57lol/.var/app/com.obsproject.Studio/config/obs-studio/plugins/tuna/bin/64bit/tuna.so): libjansson.so.4: cannot open shared object file: No such file or directory 16:23:03.621: Module '/home/treier57lol/.var/app/com.obsproject.Studio/config/obs-studio/plugins/tuna/bin/64bit/tuna.so' not loaded

VLC won't work to show

I can't use to show the VLC plugin's playing title. It shows: VLC support is disabled, either because OBS updated and it was disabled by the user, or because VLC isn't installed. VLC is installed and has a active source

[REQ] Write play time remaining to file?

Hi is it possible to add a way to write the remaining playtime to a text file?

I am lost since Duration isn't shown with my files, but progress bar size and Media Controls v 0.2.2 do show time remaining correctly - would be great to write those to a file just like Progress (%p) does right now

music control dock state & progress bar

Hey univrsal,

the music control dock still doesn't remember it's state of visibility and the progress bar is bound to the refresh rate of the API call, and so doesnt update every second until its at 100%. Is there any way to fix that?

Thx for the plugin and cheers from germany! ;-)

Can't make or load output file

Trying to load my nowplaying.txt file, OBS crashes when I hit apply. In the logs there is [tuna] Error writing json at line -1 (col: -1):. Also I'm unable to make a new file either, says The provided data is incorrect. Running OBS under sudo I get

warning: [tuna] Error writing json at line -1 (col: -1): 
warning: [tuna] Error loading output json at line 2 (col: 4): ']' expected near end of file

Running Kubuntu 19.04, OBS Studio 24.0.3

Some tracks in my library are causing OBS to crash with tuna enabled

This one is difficult for me to pinpoint to report since I cannot identify which tracks in-particular are causing OBS to crash (since the tag display doesn't update when OBS crashes). Even though the "OBS has crashed!" dialogue window pops up, OBS itself is still running in the background with the music playing until I click Yes or No and close the crash popup.

A little bit more info which may help: I was getting these crashes on a set of MP3s I'd imported to the VLC player earlier, but I managed to fix those crashes by removing some additional musicbrainz metadata that was embedded in the MP3 files. However, it seems these new crashes are happening on MP3s that don't have this additional metadata as well.

I have attached the last crash dump if it's of any help.
Crash 2020-07-09 05-22-35.txt

image

Update: I have identified one of the MP3 files causing issues, no idea why.
https://f.violet.pm/2020/07/09/33.%20Straight%20to%20Hell1.mp3

Basic Settings Not Saving OBS - Mac OS Catalina 10.15.6

Spotify connection works perfectly, but when navigating back to the basics tab and attempting to edit/add/remove a new song format and song info path, the settings do not save after hitting APPLY and OK. Please help me out.

Logging

It would be nice to have a logging of songs to a separate file. Probably with its own format (not the on screen formatting)

GUI Issue and Functionality not working for VLC: Ubuntu 18, OBS 25.08 Tuna1.4.2

I tried running with Ubuntu 18, OBS 25.08 Tuna1.4.2
It seems not to work i used the same video on YouTube for tutorial, please check. It works flawlessly on Windows no doubt.
Please check for Ubuntu 18 Thanks.
So it shows on tuna dock the name of the song playing but not in the file.
The GUI naming is screwed, and the functionality isnt working for VLC now playing
tuna option
tunszgui

Spotify Tokens not saved correctly

It seems that spotify tokens seem to disappear from time to time, but I haven't figured out why, so I'll need some more input on this.

Song Info Output settings crashing

I have tuna installed on two macs that I regularly use for streaming. One is running MacOS Mojave and the other is running MacOS Catalina. On both of them, I cannot change anything related to the Song Info Outputs. Whenever I make a change, and click Apply and Ok, the changes are discarded. This includes any actions related to "Add new," "Remove selected," "Edit selected." In other words, whenever I try to add, remove, or edit song info outputs, my changes are immediately discarded.

Within the Output Editor window, changes to the file directory cause the whole tuna settings window to crash after making the change when clicking Ok, and then I have to click Tools -> Tuna Settings twice to bring the settings window back up. None of my changes are saved and this happens 100% of the time.

Also in the Output Editor window if I change any data in the bottom Format Editor string, and click ok, the changes are reflected in the Tuna Preferences window, then I click apply and ok to close the Tuna Preferences window, and my changes are instantly discarded. When I go back into Tuna Preferences, the settings are back at defaults as if I had not made any changes.

Everything I have described is 100% reproducible across both my machines.

OBS 25.0.8 (64 bit) Tuna 1.4.1 (I can't update to the latest version because no mac installer was posted for the latest version).

Thanks in advance for your help with this critical issue.

Tuna not working with OBS 25.0.3 (Linux)

I'm using OBS 25.0.3+dfsg1-2 (linux) on Pop!_OS 20.04.

I've had to manually install libmpdclient2 for Tuna to be recognized by OBS. It seems to be loading now but I only have "Tuna progress bar" available as a new source, and the music controls don't react to anything.

Trouble installing/using

In linux: I've followed the instructions, created the folder, copied the contents into it, and have launched OBS.

I don't see anything different, and I can't find where I'd access this plugin's settings. I don't know if this is working properly or not.

Any help or general guidance would be deeply appreciated. There just isn't much written here.

Problems with OBS Starting with Tuna

I installed Tuna, opened OBS Studio (64-bit in Administrator mode), set Tuna up, closed OBS Studio (to add another plugin, Media Controls by Exeldro because the Music controller with Tuna did not function at all), then I opened OBS Studio back up, worked fine.

Closed it again (because I was done), came back 20 minutes later (to add more music), and OBS would not launch. My computer would start to stutter (basically the mouse was moving at 15 fps), and opon ending OBS Studio in Task Manager (which was listed as a background task), fixed the stuttering. Then I go and remove Tuna, and then it worked fine.

Not sure if this problem is just for myself, or if its a conflict between Media Controls and Tuna, but whatever it is, I am going to try something else until this gets fixed/gets resolved.

MPD support on Windows

Is there a reason it isn't enabled on Windows? I've got MPD running and I'd like to be able to connect to it.

No such file or directory

I'm trying to install the install-mac.sh, but after pressing "y" to delete old version, I get prompted that there is No Such File or Directory when it tries to move the files over into the obs-studio plugin folder...

Album art not appearing consistently with VLC source

I'm having album artwork both appearing and not appearing while using a VLC source, using the same audio files in both cases. Obviously the embedded art is valid since it's showing up some of the time, but I just can't figure out what's making it appear sometimes but not others. I've got three separate text files all working reliably so the plugin is generally working fine.

This is with VLC 3.0.10 and OBS 25.0.8. I tailed the log for a bit while toggling the music and overlay on and off to look for clues, but this is all I could find that looked relevant.

19:38:39.388: [tuna] Couldn't move existing cover to temp file
19:38:39.388: [tuna] Couldn't move placeholder cover

OBS 25.0.8 / VLC sources

Hi !
I got this error and i can't use VLC sources with Tuna :(
In logs, it's say is invalid with the last libobs.

20:31:07.805: [tuna] Loading v2020.04.12 16:18
20:31:07.805: [tuna] libobs version 25.0.8 is invalid. Tuna expects 25.0.4 for VLC sources to work
20:31:07.805: [tuna] User force enabled VLC support
20:31:07.866: [tuna] Loaded libVLC. VLC source support enabled
20:31:07.936: [tuna] Registered Spotify (id: spotify)
20:31:07.936: [tuna] Registered MPD (id: mpd)
20:31:07.936: [tuna] Registered VLC (id: vlc)
20:31:07.936: [tuna] Registered Window Title (id: window)
20:31:07.940: [tuna] Loaded 1 outputs
20:31:07.941: [tuna] Couldn't move existing cover to temp file
20:31:07.941: [tuna] Couldn't move placeholder cover

Support obs vlc source

Hello, nice plugin! I wonder if it's possible to support vlc source in obs-studio. That is, I don't play music on my host, only streaming them. It's a desperate feature to have now-playing information being streamed too.

Invalid Client Spotify Error

Hi,
Spotify wont connect anymore,
= 2019.09.13 22:14 = { "error": "invalid_client", "error_description": "Invalid client" }
Removing tuna from spotify and reinstall OBS wont work.

Line break format symbol not working

I recently had to do a fresh install of OBS studio and my plugins. For some reason, the text file for the current song gets written as ARTIST b TITLE instead of actually creating a line break. Interestingly, this wasn't the case when I updated to the latest version of OBS the first time, it only appeared once I did a clean install. The only other plugins I have are InputOverlay, websoquet, and virtual cam.

image

Unicode characters not displaying correctly

I'm having a weird issue where unicode characters (tested Japanese and Korean so far) won't display correctly on the text source. Interestingly, they are working in the Music Control dock from Tuna, and displaying fine in VLC and the mp3 tags.

If I switch the font on the OBS text source and change the 'writing system' to the appropriate language, the unicode characters display but then the latin characters are placed by empty boxes!

Any help would be appreciated!

Song format 'A' at the beginning of a line gets replaced

I wanted to have the following as my song format in the text file:

Album: %a %bTitle: %t %bArtist: %m
But the A without a % in front gets parsed as %A and gets an uppercase album name in the output.

Instead I used this:
%b Album: %a %b Title: %t %b Artist: %m

Which adds extra spaces, but at least works. I had to add spaces on all lines for alignment purposes.

Slow to update files when changing tracks on Spotify and folder is unfocused

I've noticed a strange behaviour that I can't seem to explain. When changing tracks on Spotify (polling set to 1000ms), it can take up to 30 seconds to show on OBS. However, if the folder where I write the tuna files on is opened in my file browser the changes are almost instant.

I can't figure out if it's a problem from Tuna, OBS, or my OS.

OBS 25.0.3
Pop_OS! 20.04

Last cover image remain even if the player is paused

Right now when you pause Spotify the "Song Placeholder"is displayed but the cover image stays the same.
It would be handy to have the "Cover Placeholder" image displayed instead (or a transparent image but I guess the placeholder would be better for consistency).

UI issue

I am finiding the UI really really hard to navigate, it's like some vital piece of coding is missing.
tuna

Could you please help me :(

Last.fm support

It would be cool if this plugin could pull the "currently listening to" data from Last.fm. This way it doesn't matter what software I'm using to play music, as long as it has Last.fm support.

Get Specify Process Windows Title [Feature Request]

For most of user of windows title , they may know which process is their music player . If we can set a process name , it will be more accurate to get music name from the Windows Title .
(a list of process name is better).

%e and %b mislabeled in Output editor

Hello,

I was setting up tuna for the first time and noticed an apparent mislabeling of the special prompts to display the publisher and a line break. I added a %e to show the Song label (edited to say "Publisher" in the track I'm testing, since it was blank previously). It appeared as a line break. I added a line break to test further, and it appears that %e and %b are switched in either the instructions in the output editor or the code is applying the wrong label to the characters.

Test input: "Now playing - %e - %b - %a - %t"
image

Expected output:

"Now playing - Publisher
- Zelda & Chill - Fairy Fountain"

Actual output:
image

"Now playing -
- Publisher - Zelda & Chill - Fairy Fountain"

obs crashes

obs crashes when setting up spotify as soon as i hit ok after entering the code obs crashes

Cover Art won't display

Tuna has been great thus far, however, for some reason it refuses to write the cover art file to location for only 3 out of the hundreds of songs ive been able to play and see art for.

Ive tried restarting, redownloading, changing file location. VLC plays and recognizes the cover art. I even ran these tracks through tuna on a separate computer and it worked there. Nothing seems to get tuna to recognize this particular cover art on my primary pc.

[Linux] 1.4.2 installation on Manjaro

Had some issues getting tuna installed but I figured it out.

On my Manjaro system, running install-linux.sh moves only the tuna folder to be placed at ~/.config/obs-studio/plugins/tuna/tuna which makes the plugin not even load.

After manually moving tuna to be placed at ~/.config/obs-studio/plugins/tuna the plugin loads, but fails to load en-US causing labels to not be correct.

I manged to get en-US to load by manually placing it at ~/.config/obs-studio/plugins/tuna/data/locale/en-US.ini

Now that I've gotten it installed, everything seems normal except %b linebreak is not working.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.