Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

-playlist does not create a output file #4

Closed
xses22 opened this issue Aug 10, 2019 · 7 comments
Closed

-playlist does not create a output file #4

xses22 opened this issue Aug 10, 2019 · 7 comments
Labels

Comments

@xses22
Copy link

xses22 commented Aug 10, 2019

Hello I used your docker file on my server and it seems that i can't get it to output a m3u to my output folder.

"-config /config/config.yaml -playlist /config"

My logs aren't showing any errors.

time="2019-08-10T20:49:32+02:00" level=info msg="Scheduling cronjob to periodically update playlist."
time="2019-08-10T20:49:32+02:00" level=info msg="Parsing for the first time..."
time="2019-08-10T20:49:32+02:00" level=info msg="starting server"
time="2019-08-10T20:49:32+02:00" level=info msg="updating playlists"
time="2019-08-10T20:49:32+02:00" level=info msg="reading from provider http://xxxxxxx.com:1234/get.php?username=xxx&password=xxxx&type=m3u_plus&output=ts"
time="2019-08-10T20:49:32+02:00" level=info msg="Parsing 1000 streams"
time="2019-08-10T20:49:33+02:00" level=info msg="Parsing 2000 streams"
time="2019-08-10T20:49:33+02:00" level=info msg="Parsing 3000 streams"
time="2019-08-10T20:49:33+02:00" level=info msg="Parsing 4000 streams"
time="2019-08-10T20:49:33+02:00" level=info msg="Parsing 5000 streams"
time="2019-08-10T20:49:33+02:00" level=info msg="Parsing 6000 streams"
time="2019-08-10T20:49:33+02:00" level=info msg="Found 763 valid streams"
time="2019-08-10T20:49:33+02:00" level=info msg=done

@hoshsadiq
Copy link
Owner

What does your core config look like?

@stale
Copy link

stale bot commented Aug 27, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 27, 2019
@stale stale bot closed this as completed Sep 3, 2019
@knaksbrig
Copy link

Hi. I'm having the same issue where the -log or -playlist arguments don't seem to be working in either Docker (prefered) or native linux. I'm getting 'no such file or directory' if the file doesn't exist; and if I create the file manually, I then get 'log.txt: bad file descriptor' or 'playlist.m3u: bad file descriptor'. Any ideas?

@hoshsadiq
Copy link
Owner

Can you tell me what commands you are running?

@knaksbrig
Copy link

knaksbrig commented Feb 7, 2020

Followed the README and running 'm3ufilter -config /path/to/config.yaml' works with a basic config. I can see the parsed output via stdout and also if I run as a server (GET /playlist.m3u). But, if I try to run once with the -playlist argument, I get the above errors.

@hoshsadiq
Copy link
Owner

I can't do anything with what you've given me, please paste the exact commands you're running with their output. E.g.:

$ docker run bla
something happened

In addition also post the config.yaml file taking care to remove the URLs to your providers if they are sensitive URLs.

@Olivier6767
Copy link

Olivier6767 commented Apr 1, 2020

I would like o reopen this issue as I have the same problem.

Platform: Ubuntu 18.04.4 LTS - AMD64
Version: v0.1-beta.3 - using binary: m3u-filter_linux_arm64 - Downloaded executable, did NOT build from source myself

Command line: ./m3u-filter -config ./data/m3u.conf -playlist ./data/playlist.m3u

Error Message:
panic: open ./data/playlist.m3u: no such file or directory

goroutine 1 [running]: main.fd(0x7ffeacbae7c5, 0x13, 0x7ffeacbae700, 0xf) /home/travis/gopath/src/github.com/hoshsadiq/m3ufilter/cmd/m3u-filter/main.go:59 +0xf6 main.main() /home/travis/gopath/src/github.com/hoshsadiq/m3ufilter/cmd/m3u-filter/main.go:30 +0x228

The error is the same if I specify a logfile, with or without the -playlist argument.

I tried creating an empty playlist.m3u file but then I get:
FATA[2020-04-01T20:19:31+02:00]writer/m3u.go:15 writer.writeM3U() unable to write extm3u, err = !!write ./data/playlist.m3u: bad file descriptor

Content of m3u.conf file:
core:
output: m3u
group_order:
- France
- Switzerland
- Belgium
- VOD France
providers:
- uri: file:///home/Services/m3u-filter/data/playlist.ts
filters:
- match(Group, "France")
- match(Group, "Switzerland")
- match(Group, "Belgium")
- match(Group, "VOD France")

If I don't specify the -log or -playlist arguments the filtered m3u list is displayed on the console properly.

Hopefully this will help narrowing down the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants