Fixing api value extraction.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-12-29 10:43:43 -05:00
parent 873a5cd609
commit 9337c46863
1 changed files with 9 additions and 3 deletions

View File

@ -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 }