few changes
This commit is contained in:
parent
5946f3d3f2
commit
4a7f983327
2 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
## IPTV-Checker (Changelog)
|
## IPTV-Checker (Changelog)
|
||||||
|
|
||||||
|
* v1.0 - Few changes in m3u files
|
||||||
* v1.0 - Implemented automatic detection of xml iptv files
|
* v1.0 - Implemented automatic detection of xml iptv files
|
||||||
* v1.0 - Bug fix & implementation , changed how iptv-check filters the m3u file lists and from now will autoremove repeated urls on lists to scan
|
* v1.0 - Bug fix & implementation , changed how iptv-check filters the m3u file lists and from now will autoremove repeated urls on lists to scan
|
||||||
* v1.0 - Bug fix , waiting for data was change from 2s to 4s because servers may take sometime to start sending data
|
* v1.0 - Bug fix , waiting for data was change from 2s to 4s because servers may take sometime to start sending data
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ function writefile() {
|
||||||
if [[ -f "$wfile" ]]
|
if [[ -f "$wfile" ]]
|
||||||
then
|
then
|
||||||
#searchs for that specific url in original file and get line number
|
#searchs for that specific url in original file and get line number
|
||||||
gturlline=$(grep -n "\<$chkf\>"<$path/temp/1 | tr ":" "\n" | sed -n 1p)
|
gturlline=$(grep -n "$chkf"<$path/temp/1 | tr ":" "\n" | sed -n 1p)
|
||||||
# This variavble will get the line number before the previous url (this is to get channel name)
|
# This variavble will get the line number before the previous url (this is to get channel name)
|
||||||
defline=$((gturlline-1))
|
defline=$((gturlline-1))
|
||||||
stdata=$(sed -n "$defline p"< $path/temp/1)
|
stdata=$(sed -n "$defline p"< $path/temp/1)
|
||||||
|
|
@ -109,7 +109,7 @@ echo "" >> "$wfile"
|
||||||
else
|
else
|
||||||
echo "#EXTM3U" > "$wfile"
|
echo "#EXTM3U" > "$wfile"
|
||||||
echo "" >> "$wfile"
|
echo "" >> "$wfile"
|
||||||
gturlline=$(grep -n "\<$chkf\>"<$path/temp/1 | tr ":" "\n" | sed -n 1p)
|
gturlline=$(grep -n "$chkf"<$path/temp/1 | tr ":" "\n" | sed -n 1p)
|
||||||
defline=$((gturlline-1))
|
defline=$((gturlline-1))
|
||||||
stdata=$(sed -n "$defline p"< $path/temp/1)
|
stdata=$(sed -n "$defline p"< $path/temp/1)
|
||||||
echo "$stdata" >> "$wfile"
|
echo "$stdata" >> "$wfile"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue