From 9337c4686367684ee2fd2044e32b7de0871a9feb Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Thu, 29 Dec 2022 10:43:43 -0500 Subject: [PATCH] Fixing api value extraction. --- app/VideoWeb/Invidious.class.st | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/VideoWeb/Invidious.class.st b/app/VideoWeb/Invidious.class.st index 8d065b8..c4e9120 100644 --- a/app/VideoWeb/Invidious.class.st +++ b/app/VideoWeb/Invidious.class.st @@ -34,10 +34,14 @@ Invidious class >> rawInstances [ retrieveContents ] +{ #category : #accessing } +Invidious >> api [ + ^ api +] + { #category : #accessing } Invidious >> api: booleanValue [ - (booleanValue = 'true') - ifTrue: [ api := true ] ifFalse: [ api := false ] + api := booleanValue. ] { #category : #accessing } @@ -67,8 +71,10 @@ Invidious >> monitor: aDictionary [ { #category : #accessing } Invidious >> printOn: aStream [ + | ratio | + ratio := self monitor at: '90DaysRatio' ifAbsent: [ '--' ]. super printOn: aStream. - ^ aStream nextPutAll: ' ( ', self uri asString, ' | ', self region, ' | ', (self monitor at: '90DaysRatio'), '% ) ' + ^ aStream nextPutAll: ' ( ', self uri asString, ' | ', self region, ' | ', ratio, '% ) ' ] { #category : #accessing }