Browse Source

added open_youtube to open links in youtube app

seperation
Gitea 7 years ago
parent
commit
e6c0719033
  1. 7
      open_youtube.py

7
open_youtube.py

@ -0,0 +1,7 @@
from adb import Device
import pyperclip
def open_youtube(Device,link):
Device.shell(*('am start -a android.intent.action.VIEW'.split(' ')),link)
if __name__ == "__main__":
d = Device.prim_device()
open_youtube(d,pyperclip.paste())
Loading…
Cancel
Save