Skip to content

Commit

Permalink
README: Add missing texts
Browse files Browse the repository at this point in the history
  • Loading branch information
dplocki committed Jan 24, 2024
1 parent 915ef40 commit 1dcf947
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Those will be cover by all values given by command line.
| `name` | string | yes | - | The name of channel (used in logger) |
| `rss_link` | string | yes | - | The URL of RSS channel |
| `path` | string | yes | - | The path to directory, for podcast files |
| `file_name_template` | string | no | `%file_name%.%file_extension%` | The template for the downloaded files, more
| `file_name_template` | string | no | `%file_name%.%file_extension%` | The template for the downloaded files, see [File name template](#file-name-template)|
| `disable` | boolean | no | `false` | This podcast will be ignored |
| `podcast_extensions` | key-value | no | `{".mp3": "audio/mpeg"}` | The file filter |
| `if_directory_empty` | string | no | `download_last` | See [In case of empty directory](#in-case-of-empty-directory) |
Expand Down Expand Up @@ -108,6 +108,8 @@ Those will be cover by all values given by command line.

### HTTP request headers

Some servers may don't like how the urllib is presenting itself to them (the HTTP User-Agent header). This may lead into problem likes: `urllib.error.HTTPError: HTTP Error 403: Forbidden`. It may be require to present the script client as something else.

There is an option to specify HTTP headers when downloading files.
You can provide them using the `http_headers` value in the configuration file.
The option value should be a dictionary where each header is presented as a key-value pair, with the key being the header title and the value being the header value.
Expand Down

0 comments on commit 1dcf947

Please sign in to comment.