Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asutorufa/transmission-rss
https://github.com/asutorufa/transmission-rss
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/asutorufa/transmission-rss
- Owner: Asutorufa
- Created: 2024-05-30T16:00:19.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-11T01:55:03.000Z (about 1 month ago)
- Last Synced: 2024-11-11T02:36:24.443Z (about 1 month ago)
- Language: Go
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
#
## build and run
```bash
go build -o main -v .
# config type: json or toml, default toml
./main -path config/ -rpc http://127.0.0.1:9091/transmission/rpc -host :9093 -config-type json
```immidiately run once
```bash
curl http://127.0.0.1:9093/start_job
```![screentshot](https://raw.githubusercontent.com/Asutorufa/transmission-rss/refs/heads/main/assets/screenshot.png)
## config dir
### config
put config in config dir, config type can be json or toml, config file name:
- toml: config.toml
- json: config.json#### config.toml
```toml
[[rss]]
name = "rss1"
url = "https://example.com/RSS1"
download_dir = "/download/rss1"
regexp = ["\\(CR"]
exclude_regexp = ["\\(Baha"]
download_after = 1717077480
expire_time = 1717077480
disabled = true
fetch_interval = 1000 # units: ms[[rss]]
name = "rss2"
url = "https://example.com/RSS2"
download_dir = "/download/rss2"
regexp = ["\\(CR,RSS2","RSS2"]
exclude_regexp = ["\\(Baha"]
```#### config.json
```json
{
"rss": [
{
"name": "rss1",
"url": "https://example.com/RSS1",
"download_dir": "/download/rss1",
"regexp": [
"\\(CR"
],
"exclude_regexp": [
"\\(Baha"
],
"download_after": 1717077480
},
{
"name": "rss2",
"url": "https://example.com/RSS2",
"download_dir": "/download/rss2",
"regexp": [
"\\(CR,RSS2",
"RSS2"
],
"exclude_regexp": [
"\\(Baha"
]
}
]
}
```