2023-01-09 16:47:28 +00:00
|
|
|
Extension { #name : #WebVideo }
|
|
|
|
|
|
|
|
{ #category : #'*TiddlyWiki' }
|
|
|
|
WebVideo >> asTiddler [
|
|
|
|
| tiddler body |
|
|
|
|
tiddler := Tiddler new
|
|
|
|
title: self title.
|
|
|
|
tiddler customFields
|
|
|
|
at: 'uid' put: self videoId;
|
|
|
|
at: 'author' put: self author;
|
|
|
|
at: 'authorId' put: self authorId;
|
|
|
|
at: 'duration' put: self duration.
|
|
|
|
body := '' writeStream.
|
|
|
|
body
|
|
|
|
nextPutAll: '<<richlink "https://www.youtube.com/watch?v=', self videoId ,'">>';
|
|
|
|
nextPutAll: '
|
2023-01-19 02:41:03 +00:00
|
|
|
|
2023-01-09 16:47:28 +00:00
|
|
|
* ''''Duración:'''' {{!!duration}}
|
|
|
|
* ''''Autor/a:'''' {{!!author}}'.
|
2023-01-19 02:41:03 +00:00
|
|
|
tiddler text: body contents withInternetLineEndings.
|
2023-01-09 16:47:28 +00:00
|
|
|
|
|
|
|
^ tiddler
|
|
|
|
]
|