Closed xses22 closed 4 years ago
What does your core config look like?
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.
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?
Can you tell me what commands you are running?
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.
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.
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.
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.