Skip to content

Commit

Permalink
Merge pull request #97 from dongaba/dev
Browse files Browse the repository at this point in the history
Merge 3.2.0
  • Loading branch information
dongaba committed Jun 23, 2024
2 parents 0de5b1d + 837ed2c commit f4f0501
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ linux-*
mac-*
win-*
*.xlsx
.anima
.anima/*

#Chrome拡張機能
_*
Expand Down
11 changes: 7 additions & 4 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Change Log

## [3.1.1](https://github.com/dongaba/TVerRec/releases/tag/v3.1.1)
## [3.2.0](https://github.com/dongaba/TVerRec/releases/tag/v3.2.0)

### 3.1.1 Added
### 3.2.0 Added

- TVerRecの自動アップデートでアップデートチャネルを選択可能に
- m3u8ファイルの取得、mpdファイルの取得に対応
- TVer番組のtsファイルのダウンロードに対応

### 3.1.1 Changed
### 3.2.0 Changed

- 念の為にGeoIP対策実施
- GUI設定画面にプリセットを呼び出す機能を追加
Expand All @@ -18,9 +18,12 @@
- GUI設定画面から設定できる項目を追加
- GUI設定画面でテキストボックスの幅が足りない場合に複数行化

### 3.1.1 Fixed
### 3.2.0 Fixed

- アップデータがリストファイルのレイアウト変更に失敗するケースがある不具合を修正
- キーワードファイルに`epsodes/epxxxxxxxx`を指定すると`epsodes/epxxxxxxxx`でキーワード検索をしてしまう不具合を修正
- 低解像度ファイルのダウンロードのオプション指定の記載例に誤りがあった問題を修正
- Dockerコンテナで最新のPowerShellに実行権限がつかない問題を修正

## [3.1.0](https://github.com/dongaba/TVerRec/releases/tag/v3.1.0)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.0 beta
3.2.0
8 changes: 4 additions & 4 deletions conf/system_setting.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,13 @@ $script:ytdlOption = ''

#以下は$script:ytdlOptionの設定例
# 1080p
# $script:ytdlOption = '-f bestvideo[height<=1080]+bestaudio/best[height<=1080]'
# $script:ytdlOption = '-f "bestvideo[height<=1080]+bestaudio/best[height<=1080]"'
# 720p
# $script:ytdlOption = '-f bestvideo[height<=720]+bestaudio/best[height<=720]'
# $script:ytdlOption = '-f "bestvideo[height<=720]+bestaudio/best[height<=720]"'
# 480p
# $script:ytdlOption = '-f bestvideo[height<=480]+bestaudio/best[height<=480]'
# $script:ytdlOption = '-f "bestvideo[height<=480]+bestaudio/best[height<=480]"'
# 360p
# $script:ytdlOption = '-f bestvideo[height<=360]+bestaudio/best[height<=360]'
# $script:ytdlOption = '-f "bestvideo[height<=360]+bestaudio/best[height<=360]"'

#Tverサイト以外のベースファイル名
$script:ytdlNonTVerFileName = '%(webpage_url_domain)s - %(upload_date)s - %(title)s - [%(id)s].%(ext)s'
Expand Down
16 changes: 9 additions & 7 deletions resources/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
#Powershellのダウンロードと配置
RUN /bin/bash -c ' \
arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/x64/ | sed s/amd64/x64/) ; \
release=$(curl -sL https://api.github.com/repos/PowerShell/PowerShell/releases/latest) ; \
package=$(echo $release | jq -r ".assets[].browser_download_url" | grep "linux-${arch}.tar.gz") ; \
wget $package ; \
mkdir -p /opt/microsoft/powershell ; \
tar -xvf "./${package##*/}" -C /opt/microsoft/powershell ; \
ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh ; \
arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/x64/ | sed s/amd64/x64/) && \
release=$(curl -sL https://api.github.com/repos/PowerShell/PowerShell/releases/latest) && \
package=$(echo $release | jq -r ".assets[].browser_download_url" | grep "linux-${arch}.tar.gz") && \
wget $package && \
mkdir -p /opt/microsoft/powershell && \
tar -xvf "./${package##*/}" -C /opt/microsoft/powershell && \
ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh && \
chmod a+x /opt/microsoft/powershell/pwsh && \
rm -rf "./${package##*/}" \
'

Expand Down Expand Up @@ -70,3 +71,4 @@ RUN chmod a+x ./unix/*.sh
WORKDIR /app/TVerRec/unix
ENTRYPOINT ["/bin/bash"]
CMD ["start_tverrec.sh"]
#CMD ["/bin/bash"]
1 change: 1 addition & 0 deletions src/functions/tver_functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function Get-VideoLinksFromKeyword {
'toppage' { $result = Get-LinkFromTopPage; $linkCollection = Update-LinkCollection -linkCollection $linkCollection -result $result; continue }
'sitemap' { $result = Get-LinkFromSiteMap; $linkCollection = Update-LinkCollection -linkCollection $linkCollection -result $result; continue }
'mypage' { $result = Get-LinkFromMyPage $tverID; $linkCollection = Update-LinkCollection -linkCollection $linkCollection -result $result; continue }
'episodes' { continue }
default { $result = Get-LinkFromFreeKeyword $keyword; $linkCollection = Update-LinkCollection -linkCollection $linkCollection -result $result }
}
while (($linkCollection.specialMainLinks.Count -ne 0) -or ($linkCollection.specialLinks.Count -ne 0) -or ($linkCollection.talentLinks.Count -ne 0) -or ($linkCollection.seriesLinks.Count -ne 0) -or ($linkCollection.seasonLinks.Count -ne 0)) {
Expand Down
2 changes: 1 addition & 1 deletion src/gui/gui_setting.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ $ffmpegDecodeOption_Pi3.Add_Click({ $ffmpegDecodeOption.Text = '-c:v h264_omx' }

function Set-YtdlOption ($height) {
$ytdlOption.Text = if ($height -eq 'Clear') { '' }
else { "-f bestvideo[height<=$height]+bestaudio/best[height<=$height]" }
else { '-f "bestvideo[height<=' + $height + ']+bestaudio/best[height<=' + $height + ']"' }
}
$btnYtdlOption_Clear.Add_Click({ Set-YtdlOption 'Clear' })
$btnYtdlOption_1080.Add_Click({ Set-YtdlOption 1080 })
Expand Down

0 comments on commit f4f0501

Please sign in to comment.