Browse Source

Fix `mpv` command line

Matteo Savatteri 4 years ago
parent
commit
09ee319959
1 changed files with 3 additions and 3 deletions
  1. 3 3
      vaporget

+ 3 - 3
vaporget

@@ -15,9 +15,9 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
-
+# Global Variables
 WEBSITE="https://vaporwave.ivan.moe/list/"
-
+MPV_CMDLINE=$@
 
 ###############################################################################
 # USEFUL FUNCTIONS                                                            #
@@ -64,7 +64,7 @@ prepare_playlist()
 # Plays the playlist it recieves via standard input
 play_music()
 {
-	mpv --no-video --playlist=- "$@"
+	mpv --no-video --playlist=- $MPV_CMDLINE
 }
 
 # TERM signal handler