audacious-media-player / audacious

A lightweight and versatile audio player
https://audacious-media-player.org
Other
872 stars 116 forks source link

Support adding remote folders via GIO #638

Closed Audacious-Bot closed 6 months ago

Audacious-Bot commented 6 months ago

Author Name: Lurid Ace! Original Redmine Issue: https://redmine.audacious-media-player.org/issues/503 Original Date: 2015-01-22


Hi, I'm using Audacious 3.5.2 on ArchLinux with audacious-plugins-3.5.2-2 installed, The GIO plugin is correctly loaded without errors, anyway it's not working, please see this log:

Audacious 3.5.2 (Arch Linux)

dbus-server.c:750 [name_acquired]: Owned D-Bus name (org.atheme.audacious) on session bus.
main.c:598 [main]: No remote session; starting up.
main.c:487 [init_two]: Loading configuration.
main.c:490 [init_two]: Initializing.
main.c:499 [init_two]: Loading lowlevel plugins.
plugin-registry.c:549 [plugin_register]: Register plugin: /usr/lib/audacious/Transport/gio.so
...
...
...
main.c:601 [main]: Startup complete.
probe.c:160 [file_find_decoder]: Probing smb://192.168.101.202/music/David%20Housden%20-%20Thomas%20Was%20Alone%20OST%20(Deluxe%20Edition).
probe.c:119 [probe_by_scheme]: Probing by scheme.
probe.c:190 [file_find_decoder]: Probe failed.
probe.c:160 [file_find_decoder]: Probing smb://192.168.101.202/music/David%20Housden%20-%20Thomas%20Was%20Alone%20OST%20(Deluxe%20Edition).
probe.c:119 [probe_by_scheme]: Probing by scheme.
probe.c:49 [check_opened]: Opening smb://192.168.101.202/music/David%20Housden%20-%20Thomas%20Was%20Alone%20OST%20(Deluxe%20Edition).
pluginenum.c:75 [plugin_load]: Loading plugin: /usr/lib/audacious/Transport/gio.so.
probe.c:55 [check_opened]: FAILED.
probe.c:152 [probe_by_content]: Probing by content.
probe.c:62 [probe_func]: util.c:163 [audgui_simple_message]: Trying 2SF Decoder.
pluginenum.c:75 [plugin_load]: Loading plugin: /usr/lib/audacious/Input/xsf.so.
Cannot open smb://192.168.101.202/music/David%20Housden%20-%20Thomas%20Was%20Alone%20OST%20(Deluxe%20Edition): Nelze otevřít složku.
probe.c:190 [file_find_decoder]: Probe failed.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

note: I can't try the git version due to jack/jack2 conflicts in my system (many packackes uses jack and audacious-git version jack2)

Audacious-Bot commented 6 months ago

Original Redmine Comment Author Name: Thomas Lange Original Date: 2015-01-22T19:49:51Z


Actually you can try the git version, just replace jack2 with jack in the PKGBUILD.

Audacious-Bot commented 6 months ago

Original Redmine Comment Author Name: Lurid Ace! Original Date: 2015-01-22T20:47:55Z


Thanks for the hint! (I recently moved myself after 12 year on Gentoo to the Arch and now as I can see, it's not such dummy as I thought)

Anyway with Audacious 3.6-alpha1 (22.1.2015) I'm still experiencing the same issue with GIO:

INFO adder.cc:124 [add_file]: Adding file: smb://192.168.101.202/music/David%20Housden%20-%20Thomas%20Was%20Alone%20OST%20(Deluxe%20Edition)
INFO probe.cc:34 [aud_file_find_decoder]: Probing smb://192.168.101.202/music/David%20Housden%20-%20Thomas%20Was%20Alone%20OST%20(Deluxe%20Edition).
INFO probe.cc:34 [aud_file_find_decoder]: Probing smb://192.168.101.202/music/David%20Housden%20-%20Thomas%20Was%20Alone%20OST%20(Deluxe%20Edition).
INFO plugin-load.cc:55 [plugin_load]: Loading plugin: /usr/lib/audacious/Transport/gio.so.
ERROR gio.cc:127 [GIOFile]: Cannot open smb://192.168.101.202/music/David%20Housden%20-%20Thomas%20Was%20Alone%20OST%20(Deluxe%20Edition): Nelze otevřít složku.
INFO probe.cc:77 [aud_file_find_decoder]: Open failed: Nelze otevřít složku.
Audacious-Bot commented 6 months ago

Original Redmine Comment Author Name: John Lindgren Original Date: 2015-01-23T02:14:08Z


Does gvfs-copy work for that same URI?

Audacious-Bot commented 6 months ago

Original Redmine Comment Author Name: John Lindgren Original Date: 2015-01-23T02:17:03Z


Actually, it looks like you are trying to add a folder from an SMB share. That isn't supported directly; you have to mount the SMB share locally instead.

Audacious-Bot commented 6 months ago

Original Redmine Comment Author Name: Lurid Ace! Original Date: 2015-01-30T11:12:48Z


Does gvfs-copy work for that same URI?

Yes, but it seems that gvfs-copy can work just with files not folders:

$ gvfs-copy "smb://192.168.101.202/music/David Housden - Thomas Was Alone OST (Deluxe Edition)" /tmp/
Error copying file smb://192.168.101.202/music/David Housden - Thomas Was Alone OST (Deluxe Edition): Can't recursively copy directory

$ gvfs-copy "smb://192.168.101.202/music/David Housden - Thomas Was Alone OST (Deluxe Edition)/cover.jpg" /tmp/

$ ls /tmp/cover.jpg
/tmp/cover.jpg

Actually, it looks like you are trying to add a folder from an SMB share. That isn't supported directly; you have to mount the SMB share locally instead.

Or add just files, which is working and I'm satisfied with this (I don't want to mount this share locally). Thanks for the help and thank you for managing this as a Feature request.

Cheers.

Audacious-Bot commented 6 months ago

Original Redmine Comment Author Name: John Lindgren Original Date: 2015-12-28T10:08:40Z


Adding of remote folders is working pretty well now in Git master.