This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on openM3U8(m3u8) | |
say "Opening video.." | |
tell application "QuickTime Player" | |
open URL m3u8 | |
activate | |
end tell | |
end openM3U8 | |
tell application "Safari" | |
set currentTab to current tab of first window |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import re | |
import datetime | |
import logging | |
import htmlentitydefs | |
htmlentitydefs_pattern = re.compile("&#?\w+;", re.U) | |
#clean_non_ascii = re.compile(r'[^\x00-\x7f]') | |
clean_rnrn = re.compile(r'[\r\n]+') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:document.location.href=document.location.href.replace(/ikan\.pptv\.com\/p\/(\d+).*/,%20'ipad.pptv.com/play_$1.htm') |
NewerOlder