mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
2e175d02e8
- Switch to GH account used by Debian - Update patch-cplay to remove upstreamed changes and add mpv support - Add off-by-default dependency options for supported audio players - Change to USES=python:-2.7; runtime testing with python3 failed - shebangfix added to remove need for ${LOCALBASE}/bin/python symlink - Add patch-po_fr.po to fix build error fr.po:78: 'msgid' and 'msgstr' entries do not both end with '\n' Reviewed by: adamw Approved by: koobs, mat (mentors) Relnotes: https://github.com/hukka/cplay/blob/v1.50/ChangeLog Differential Revision: https://reviews.freebsd.org/D7200
26 lines
1.3 KiB
Plaintext
26 lines
1.3 KiB
Plaintext
--- cplay.orig 2011-04-27 16:33:40 UTC
|
|
+++ cplay
|
|
@@ -967,9 +967,11 @@ class PlaylistWindow(TagListWindow):
|
|
try:
|
|
if os.path.isdir(pathname):
|
|
quiet or app.status(_("Working..."))
|
|
- self.add_dir(pathname)
|
|
+ self.add_dir(os.path.abspath(pathname))
|
|
elif VALID_PLAYLIST(pathname):
|
|
self.add_playlist(pathname)
|
|
+ elif os.path.isfile(pathname):
|
|
+ self.append(PlaylistEntry(os.path.abspath(pathname)))
|
|
else:
|
|
pathname = self.fix_url(pathname)
|
|
self.append(PlaylistEntry(pathname))
|
|
@@ -1837,6 +1839,9 @@ PLAYERS = [
|
|
MPlayer("mplayer -slave -vc null -vo null {file}",
|
|
"^http://|\.(mp[123]|ogg|oga|flac|spx|mp[cp+]|mod|xm|fm|s3m|" +
|
|
"med|col|669|it|mtm|stm|aiff|au|cdr|wav|wma|m4a|m4b)$"),
|
|
+ MPlayer("mpv -vo null {file}",
|
|
+ "^http://|\.(mp[123]|ogg|oga|flac|spx|mp[cp+]|mod|xm|fm|s3m|" +
|
|
+ "med|col|669|it|mtm|stm|aiff|au|cdr|wav|wma|m4a|m4b)$"),
|
|
FrameOffsetPlayer("ogg123 -q -v -k {offset} {file}", "\.(ogg|flac|spx)$"),
|
|
FrameOffsetPlayer("splay -f -k {offset} {file}", "(^http://|\.mp[123]$)", 38.28),
|
|
FrameOffsetPlayer("mpg123 -q -v -k {offset} {file}", "(^http://|\.mp[123]$)", 38.28),
|