mirror of
https://gitlab.com/peterpt/IPTV-CHECK.git
synced 2025-05-15 16:40:09 -07:00
1.1
This commit is contained in:
parent
0022c88660
commit
6c59aa8a2e
@ -101,8 +101,8 @@ 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 variable 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)
|
||||||
echo "$stdata" >> "$wfile"
|
echo "$stdata" >> "$wfile"
|
||||||
@ -111,7 +111,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…
x
Reference in New Issue
Block a user