mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-02 21:52:05 +00:00 
			
		
		
		
	Merge pull request #2903 from iv-org/SamantazFox-patch-1
comments: don't error out when video has no comments
This commit is contained in:
		@@ -78,7 +78,8 @@ def fetch_youtube_comments(id, cursor, format, locale, thin_mode, region, sort_b
 | 
			
		||||
        when "RELOAD_CONTINUATION_SLOT_HEADER"
 | 
			
		||||
          header = item["reloadContinuationItemsCommand"]["continuationItems"][0]
 | 
			
		||||
        when "RELOAD_CONTINUATION_SLOT_BODY"
 | 
			
		||||
          contents = item["reloadContinuationItemsCommand"]["continuationItems"]
 | 
			
		||||
          # continuationItems is nil when video has no comments
 | 
			
		||||
          contents = item["reloadContinuationItemsCommand"]["continuationItems"]?
 | 
			
		||||
        end
 | 
			
		||||
      elsif item["appendContinuationItemsAction"]?
 | 
			
		||||
        contents = item["appendContinuationItemsAction"]["continuationItems"]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user