Compare commits

..
Author SHA1 Message Date
dependabot[bot] 5aa47e902c chore(deps): bump crystal-lang/install-crystal from 1.9.4 to 1.9.5
Bumps [crystal-lang/install-crystal](https://github.com/crystal-lang/install-crystal) from 1.9.4 to 1.9.5.
- [Release notes](https://github.com/crystal-lang/install-crystal/releases)
- [Commits](https://github.com/crystal-lang/install-crystal/compare/v1.9.4...v1.9.5)

---
updated-dependencies:
- dependency-name: crystal-lang/install-crystal
  dependency-version: 1.9.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-06 20:43:10 +00:00
2 changed files with 3 additions and 16 deletions

No files matched your search

+2 -2
View File
@@ -66,7 +66,7 @@ jobs:
shell: bash
- name: Install Crystal
uses: crystal-lang/install-crystal@v1.9.4
uses: crystal-lang/install-crystal@v1.9.5
with:
crystal: ${{ matrix.crystal }}
@@ -138,7 +138,7 @@ jobs:
- name: Install Crystal
id: lint_step_install_crystal
uses: crystal-lang/install-crystal@v1.9.4
uses: crystal-lang/install-crystal@v1.9.5
with:
crystal: 1.22.2
+1 -14
View File
@@ -715,13 +715,6 @@ private module Parsers
# Contains the views of the video and the published time of the video.
if (metadata_rows = metadata.dig("metadata", "contentMetadataViewModel", "metadataRows").try &.as_a)
metadata_rows.each do |row|
# To filter members only videos, they do not have metadataParts available.
# This videos are not hidden from the channel videos list.
badges = row.dig?("badges").try &.as_a
if badges.try &.any? { |item| item.dig?("badgeViewModel", "badgeStyle").try &.as_s == "BADGE_MEMBERS_ONLY" }
next
end
metadata_parts = row.dig("metadataParts").try &.as_a
if view_count_text.nil?
@@ -808,13 +801,7 @@ private module Parsers
.compact_map(&.dig?("thumbnailOverlayBadgeViewModel", "thumbnailBadges").try &.as_a)
.flatten
.find(nil, &.dig?("thumbnailBadgeViewModel", "text").try do |node|
# Playlists that contain MORE THAN ONE video, use "videos" for their video count.
# "text" => "8 videos"
#
# Playlists that contain ONLY ONE video, use "video" for their video count.
# "text" => "1 video"
#
{"episodes", "videos", "video", "lessons"}.any? { |str| node.as_s.ends_with?(str) }
{"episodes", "videos", "lessons"}.any? { |str| node.as_s.ends_with?(str) }
end)
.try &.dig("thumbnailBadgeViewModel", "text").as_s.to_i(strict: false)