
TVerRec 3.0.2 /Fev 12, 2024
2024年2月12日、TVerRec バージョン3.0.2 がリリースされました。
TVerRec バージョン3.0.1 を実行した際にオートアップデート機能が動作してスクリプト更新が始まりましたが、更新途中でエラーを吐いて正しく終了できなかったので対処方法をメモしておきます。
エラーメッセージは [episodePageURL] [seriesPageURL] [descriptionText] の追加処理に失敗したことを通知するものでした。
TverRecとは?
TVerRecは、TVerのHLSコンテンツをダウンロードするためのスクリプトで、PowerShell Core 上で動作します。スクリプトはGitHubで公開されています。
TVerRecは、メインスクリプトに加えて3つの外部ソフトウェアを必要としますが、WindowsユーザーはTverRecのいずれかのコマンドを実行すると自動的にインストールされる仕様になっています。
- PowerShell Core
- youtube-dl
- ffmpeg
エラーメッセージ詳細

TVerRecはアップデートファイルを検知すると update_tverrec.cmd によりアップデート処理が実行されます。
アップデートの際に表示されたメッセージは、[\src\functions\update_tverrec.ps1] スクリプト:226,227,228 行の処理に失敗したことを通知していました。
過去のバージョンで使用していたファイルを削除、または移行します
Add-Member: C:\TVerRec_302\src\functions\update_tverrec.ps1:226
Cannot add a member with the name "episodePageURL" because a member with that name already exists. To overwrite the member anyway, add the Force parameter to your command.
(翻訳)
"episodePageURL" という名前のメンバが既に存在するため、追加できません。そのメンバーを上書きするには、コマンドにForceパラメータを追加します。
Add-Member: C:\TVerRec_302\src\functions\update_tverrec.ps1:227
Cannot add a member with the name "seriesPageURL" because a member with that name already exists. To overwrite the member anyway, add the Force parameter to your command.
(翻訳)
"seriesPageURL" という名前のメンバが既に存在するため、追加できません。そのメンバーを上書きするには、コマンドにForceパラメータを追加します。
Add-Member: C:\TVerRec_302\src\functions\update_tverrec.ps1:228
Cannot add a member with the name "descriptionText" because a member with that name already exists. To overwrite the member anyway, add the Force parameter to your command.
(翻訳)
"descriptionText" という名前のメンバが既に存在するため、追加できません。そのメンバーを上書きするには、コマンドにForceパラメータを追加します。

対処方法

エラーメッセージは、[episodePageURL、seriesPageURL、descriptionText] の3つの変数を [list.csv] に追加しようとしたが、既に存在するため追加できない。そして、[Force] パラメーターを使用して上書きできますよと言ってます。
[list.csv] は、TVerRec-3.0.2.zip(スクリプトファイル一式)には存在しないファイルで、[TVerRec-3.0.2/resources/sample/list.sample.csv] から自動的に作成されます。番組情報が記録されています。
新規インストール
エラーを無視してもTVerRecは動作するので放置で問題ないと考えますが、今回のアップデートにより、フォルダー構成が変わったり不要になったファイルが残置されているかもしれないので新規インストールすることにしました。
- TVerRec公式から [TVerRec-3.0.2.zip] をダウンロードして、ローカルドライブに展開する。
- 既存のlist.csv をコピーする(.../db/list.csv)
- 既存のhistory.csvをコピーする(.../db/history.csv) 既存の設定ファイルをコピーする
- .../conf/ignore.conf
- .../conf/keyword.conf
- .../conf/user_setting.ps1
- 以上
ソフトウェア情報
PowerShell Core
TVerRecは PowerShell Core 上で動作するスクリプトです。
PowerShell Coreは、MSが Windows PowerShell をオープンソース化してクロスプラットフォーム対応にしたものです。(Windows、macOS、Linux)
TVerRecを実行するとPowerShell Coreが自動的にインストールされますが、最新バージョンに更新することができます。
Wingetを利用する方法と、MSIインストーラーを利用する方法があります。

PowerShell Core 7 インストール手順書 (winget)
Windows 専用の PowerShell 5.1 に対し、クロスプラットフォームで利用できる PowerShell 7 が登場。機能強化や新機能搭載で、PowerShell の可能性を広げる。wingetによるインストール方法を解説します。

PowerShell Core 7 インストール手順書 (MSI)
windows/Mac/Linuxクロスプラットフォームで利用できる PowerShell 7 が登場。機能強化や新機能搭載で、PowerShell の可能性を広げる。msiによるインストール方法を解説します。
まとめ


- 2024年2月12日、TVerRecのバージョン3.0.2がリリースされました。
- TVerRecバージョン3.0.1でオートアップデート処理がエラーを起こし、正常に終了しませんでした。
- エラーメッセージによれば、[episodePageURL]、[seriesPageURL]、[descriptionText]の処理が失敗しました。
- TVerRecは、TVerのHLSコンテンツをダウンロードするためのPowerShell Core上で動作するスクリプトです。
- TVerRecには、3つの外部ソフトウェアが必要ですが、Windowsユーザーはコマンドを実行するだけで自動的にインストールされます。
- TverRec | SC2

【解決】TVerRec v2.9.9 設定ファイル読み込みエラーで起動せず
TVerRec version 2.9.9 (2023-11-24)がリリースされたので、ダウンロードして動作検証しました。しかし、設定ファイル(user_setting.ps1)を読み込む段階でエラーが発生し、落ちてしまいます。シングルダウンロード[z.download_single.cmd]
このサイトを検索 | Search this site
0 コメント