Semantic versioning and starting API implementation.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2023-01-06 19:59:04 -05:00
parent 8797e2ae65
commit b0cb9ac5ae
2 changed files with 25 additions and 0 deletions

View File

@ -13,3 +13,8 @@ BaselineOfVideoWeb >> baseline: spec [
spec package: 'VideoWeb' spec package: 'VideoWeb'
] ]
] ]
{ #category : #accessing }
BaselineOfVideoWeb >> semanticVersion [
^ '0.1.0'
]

View File

@ -58,6 +58,15 @@ Invidious class >> responseTimes [
collect: [:assoc | assoc ] collect: [:assoc | assoc ]
] ]
{ #category : #accessing }
Invidious class >> storeConfiguration [
| configFolder |
configFolder := (FileLocator userData / 'Mutabit' / 'VideoWeb') ensureCreateDirectory.
MarkupFile exportAsFileOn: configFolder / 'config.ston' containing: ( STON toStringPretty: self defaultInstance ).
^ configFolder / 'config.ston'
]
{ #category : #accessing } { #category : #accessing }
Invidious >> api [ Invidious >> api [
^ api ^ api
@ -68,6 +77,17 @@ Invidious >> api: booleanValue [
api := booleanValue. api := booleanValue.
] ]
{ #category : #accessing }
Invidious >> authorIdForVideo: aString [
]
{ #category : #accessing }
Invidious >> channel: authorId [
| queryURL |
queryURL := self uri asString, 'api/v1/channels/', authorId .
^ STONJSON fromString: queryURL asUrl retrieveContents
]
{ #category : #accessing } { #category : #accessing }
Invidious >> fromDictionary: aDictionary [ Invidious >> fromDictionary: aDictionary [
| rawMonitor| | rawMonitor|