2014-10-02, 02:22
the m3u refresh all the time, witht the new url of the .ts files
(2014-10-02, 02:41)henryperu77 Wrote: ahh? are you being sarcastic? :O I really need some help
(2014-10-02, 03:18)henryperu77 Wrote: So its a raspbmc problem :O
https://ott.totalplay.com.mx/TPHLSWeb/M3U8LiveFile?format=2&profile=313&lan=2&rows=40&f=.m3u8
08:24:49 383.761566 T:2874143824 DEBUG: ffmpeg[AB4FF450]: [hls,applehttp] HLS request for url 'http://200.76.77.237:80/LIVE/H01/CANAL435/PROFILE03-322/1102-20141002T022122.ts', offset 0, playlist 0
08:24:49 383.762054 T:2874143824 DEBUG: ffmpeg[AB4FF450]: Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
08:24:49 384.257172 T:2874143824 DEBUG: Previous line repeats 1 times.
08:24:49 384.257355 T:2874143824 DEBUG: ffmpeg[AB4FF450]: [NULL] Current profile doesn't provide more RBSP data in PPS, skipping
./play "https://ott.totalplay.com.mx/TPHLSWeb/M3U8LiveFile?format=2&profile=313&lan=2&rows=40&f=.m3u8"
--- a/play 2014-10-02 11:01:58.118474962 +0100
+++ b/play 2014-10-02 11:01:14.419323341 +0100
@@ -5,13 +5,15 @@
local strlen=${#string}
local encoded=""
- for (( pos=0 ; pos<strlen ; pos++ )); do
+ pos=0
+ while [ $pos -lt $strlen ]; do
c=${string:$pos:1}
case "$c" in
[-_.~a-zA-Z0-9] ) o="${c}" ;;
- * ) printf -v o '%%%02x' "'$c"
+ * ) o="$(printf '%%%02x' "'${c}")" ;;
esac
- encoded+="${o}"
+ encoded="${encoded}${o}"
+ pos=$((pos+1))
done
echo "${encoded}" # You can either set a return variable (FASTER)
REPLY="${encoded}" #+or echo the result (EASIER)... or both... :p