Metadata-Version: 2.1
Name: radikopodcast
Version: 1.0.2
Summary: Automatic archiver for radiko program which queried by YAML file.
Author-email: Master <roadmasternavi@gmail.com>
Maintainer-email: Master <roadmasternavi@gmail.com>
License: MIT License
        
        Copyright (c) 2021 Master
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: homepage, https://github.com/road-master/radiko-podcast
Project-URL: repository, https://github.com/road-master/radiko-podcast
Keywords: radiko,radikopodcast
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Internet
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
Classifier: Topic :: Multimedia
Classifier: Topic :: Multimedia :: Sound/Audio
Classifier: Topic :: Multimedia :: Sound/Audio :: Capture/Recording
Classifier: Topic :: System
Classifier: Topic :: System :: Archiving
Classifier: Topic :: System :: Archiving :: Backup
Classifier: Topic :: System :: Filesystems
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click
Requires-Dist: errorcollector
Requires-Dist: ffmpeg-python
Requires-Dist: radikoplaylist
Requires-Dist: yamldataclassconfig
Requires-Dist: sqlalchemy (<2.0.0)
Requires-Dist: inflector
Requires-Dist: asynccpu
Requires-Dist: asyncffmpeg
Requires-Dist: defusedxml
Provides-Extra: test

# radiko Podcast

[![Test](https://github.com/road-master/radiko-podcast/workflows/Test/badge.svg)](https://github.com/road-master/radiko-podcast/actions?query=workflow%3ATest)
[![CodeQL](https://github.com/road-master/radiko-podcast/workflows/CodeQL/badge.svg)](https://github.com/road-master/radiko-podcast/actions?query=workflow%3ACodeQL)
[![Test Coverage](https://api.codeclimate.com/v1/badges/9b52f1765b2e797d293d/test_coverage)](https://codeclimate.com/github/road-master/radiko-podcast/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/9b52f1765b2e797d293d/maintainability)](https://codeclimate.com/github/road-master/radiko-podcast/maintainability)
[![Code Climate technical debt](https://img.shields.io/codeclimate/tech-debt/road-master/radiko-podcast)](https://codeclimate.com/github/road-master/radiko-podcast)
[![Python versions](https://img.shields.io/pypi/pyversions/radikopodcast.svg)](https://pypi.org/project/radikopodcast)
[![Twitter URL](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Fgithub.com%2Froad-master%2Fradiko-podcast)](http://twitter.com/share?text=radiko%20Podcast&url=https://pypi.org/project/radikopodcast/&hashtags=python)

タイムフリー 1 週間では足りない人向けの radiko 番組自動アーカイブコマンドです

## 特徴

- 対象の番組をタイムフリーから検索し、自動的にアーカイブ
- 複数の番組を同時にアーカイブ

## 対象の番組をタイムフリーから検索し、自動的にアーカイブ

`config.yml` ファイルに設定を記述して `radiko-podcast` コマンドを実行すると、
自動的にタイムフリーを検索して、見つかった番組を
`output/` ディレクトリーにアーカイブし続けます

アーカイブした番組は m4a ファイルになるので、
iTunes で iPhone に入れることができ、
外出中でも sim の通信パケットを消費せずに番組を聴くことができます

コマンドを実行したままにしておけば、
radiko が夜間に新しく追加するタイムフリーの番組表も
自動的に検索してアーカイブを行い続けます
## 複数の番組を同時にアーカイブ

radiko の番組のアーカイブには時間がかかりますが、
この `radiko-podcast` コマンドは複数番組を同時にアーカイブできます

同時に実行するアーカイブのプロセス数は、設定ファイルで調整できます

## 動作環境の要件

- FFmpeg

## クイックスタート

### 1. インストール

```console
pip install radikopodcast
```

### 2. `config.yml` の作成

```yaml
# エリア ID (詳細は "ISO 3166-2:JP" で検索)
area_id: JP13
# 同時に実行するアーカイブのプロセス数
number_process: 3
# アーカイブするファイルが既に存在した場合、コマンドの実行を停止するかどうか
# true: 既に存在したファイルは上書きせず、他の番組のアーカイブを続けます
# false: コマンドの実行を停止します
stop_if_file_exists: false
# いずれかのキーワードで見つかった番組をアーカイブします
# 検索対象の情報は番組名のみです
keywords:
  - "SAISON CARD TOKIO HOT 100"
  - "K's Transmission"
  - "ROPPONGI PASSION PIT"
  - "カフェイン11"
```

### 3. `output/` ディレクトリーの作成

```console
mkdir output
```

この時点でディレクトリー構成は次のようになっています:

```text
your-workspace/
+----output/
+----config.yml
```

### 4. コマンドの実行

```console
radiko-podcast
```

すると、対象の番組をタイムフリーから検索し、
見つかった番組を `output/` ディレクトリーに自動的にアーカイブし続けます

### 5.終了する場合、ターミナルで Ctrl + C を入力します
