{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/2014","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/2014/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/2014/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/2014/events","html_url":"https://github.com/mpv-player/mpv/issues/2014","id":84063514,"number":2014,"title":"I wrote a linux script, can I run it with mpv in GUI?","user":{"login":"laichiaheng","id":9532105,"avatar_url":"https://avatars.githubusercontent.com/u/9532105?v=3","gravatar_id":"","url":"https://api.github.com/users/laichiaheng","html_url":"https://github.com/laichiaheng","followers_url":"https://api.github.com/users/laichiaheng/followers","following_url":"https://api.github.com/users/laichiaheng/following{/other_user}","gists_url":"https://api.github.com/users/laichiaheng/gists{/gist_id}","starred_url":"https://api.github.com/users/laichiaheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laichiaheng/subscriptions","organizations_url":"https://api.github.com/users/laichiaheng/orgs","repos_url":"https://api.github.com/users/laichiaheng/repos","events_url":"https://api.github.com/users/laichiaheng/events{/privacy}","received_events_url":"https://api.github.com/users/laichiaheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-06-02T15:04:10Z","updated_at":"2015-06-03T10:45:40Z","closed_at":null,"body":"#!/bin/bash\r\nPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin\r\nexport PATH\r\nn=$(mediainfo --Inform=\"Video;%FrameRate%\" $1)\r\nint=${n%.*}\r\nif [ $int == 59 ] || [ $int == 60 ] || [ $int == 29 ] || [ $int == 30 ];then \r\n\tmpv --vo=opengl-hq:icc-profile-auto --sub-auto=fuzzy $1\r\nelse\r\n\tmpv --vo=opengl-hq:interpolation:icc-profile-auto --sub-auto=fuzzy $1\t\r\nfi\r\nexit 0\r\n-------------------------------------------------------------------------------------------------\r\nCan I run it just like normal GUI applications do?\r\nJust like I open the Video and run this script automatically."},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/108295127","html_url":"https://github.com/mpv-player/mpv/issues/2014#issuecomment-108295127","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/2014","id":108295127,"user":{"login":"laichiaheng","id":9532105,"avatar_url":"https://avatars.githubusercontent.com/u/9532105?v=3","gravatar_id":"","url":"https://api.github.com/users/laichiaheng","html_url":"https://github.com/laichiaheng","followers_url":"https://api.github.com/users/laichiaheng/followers","following_url":"https://api.github.com/users/laichiaheng/following{/other_user}","gists_url":"https://api.github.com/users/laichiaheng/gists{/gist_id}","starred_url":"https://api.github.com/users/laichiaheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laichiaheng/subscriptions","organizations_url":"https://api.github.com/users/laichiaheng/orgs","repos_url":"https://api.github.com/users/laichiaheng/repos","events_url":"https://api.github.com/users/laichiaheng/events{/privacy}","received_events_url":"https://api.github.com/users/laichiaheng/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T10:45:40Z","updated_at":"2015-06-03T10:45:40Z","body":"@Argon- I don't know, maybe it's my illusion!\r\nAnd I know where I was wrong!! The $1 should change to \"$1\", because my filename include some commands."}}