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

View File

@ -34,10 +34,14 @@ Invidious class >> rawInstances [
retrieveContents retrieveContents
] ]
{ #category : #accessing }
Invidious >> api [
^ api
]
{ #category : #accessing } { #category : #accessing }
Invidious >> api: booleanValue [ Invidious >> api: booleanValue [
(booleanValue = 'true') api := booleanValue.
ifTrue: [ api := true ] ifFalse: [ api := false ]
] ]
{ #category : #accessing } { #category : #accessing }
@ -67,8 +71,10 @@ Invidious >> monitor: aDictionary [
{ #category : #accessing } { #category : #accessing }
Invidious >> printOn: aStream [ Invidious >> printOn: aStream [
| ratio |
ratio := self monitor at: '90DaysRatio' ifAbsent: [ '--' ].
super printOn: aStream. super printOn: aStream.
^ aStream nextPutAll: ' ( ', self uri asString, ' | ', self region, ' | ', (self monitor at: '90DaysRatio'), '% ) ' ^ aStream nextPutAll: ' ( ', self uri asString, ' | ', self region, ' | ', ratio, '% ) '
] ]
{ #category : #accessing } { #category : #accessing }