Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_youtube
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_youtube
Commits
c9960ddc
Commit
c9960ddc
authored
4 years ago
by
Tim Wagner
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Minor README improvements
parent
407c3b93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+7
-7
7 additions, 7 deletions
README.md
with
7 additions
and
7 deletions
README.md
+
7
−
7
View file @
c9960ddc
...
...
@@ -19,7 +19,7 @@ First install the extension and activate it in the Extension Manager.
*
Include the TypoScript in Configuration/TypoScript/setup.typoscript and constants.typoscript in your theme.
*
Add your Youtube API key:
```
```
typoscript
plugin.tx_sgyoutube {
settings {
# cat=plugin.tx_sgyoutube/file; type=string; label=YouTube API Key
...
...
@@ -30,14 +30,14 @@ plugin.tx_sgyoutube {
### Registration for more than the free 10.000 quotas per day
It's not 1 quota per 1
api
call. Each
api
has it
'
s own costs, which can be seen in the link below.
It's not 1 quota per 1
API
call. Each
API
has its own costs, which can be seen in the link below.
Currently at the version 3.2.1 we are using the following
api
s:
Currently
,
at the version 3.2.1 we are using the following
API
s:
-
"search/list" for channel videos
-
"playlistItems/list" for videos from a specific playlist
-
"videos/list" for getting the details for each video and the localizations, if needed.
The maximum quota costs would be "102" at the moment for rendering the latest videos from a channel with the video
The maximum quota costs would be "102" at the moment for rendering the latest videos from a channel with the video
details and translations.
[
Quota Calculator
](
https://developers.google.com/youtube/v3/determine_quota_cost
)
...
...
@@ -46,14 +46,14 @@ details and translations.
#### Caching behaviour
Because of the quota costs we implemented a caching for the calls for each day. The response from the
api
s will be
Because of the quota costs we implemented a caching for the calls for each day. The response from the
API
s will be
saved and used for 24 hours. Normally the site cache would do it, but it could be, that the cache will be cleared
multiple times in a row, or that the plugin is on an uncached page. The TYPO3 registry is used as a cache. The cleanup
will is handled on the fly.
If the
"
?disableYoutubeCache=1
"
parameter is added to the url, this cache will be ignored as well.
If the
`
?disableYoutubeCache=1
`
parameter is added to the url, this cache will be ignored as well.
#### Possible way to solve the quota limit, if it's still reached
You can use a different
api-
key for specific sites. You can implement a TypoScript page uid check and just change the
You can use a different
API
key for specific sites. You can implement a TypoScript page uid check and just change the
key from the "TypoScript integration" topic.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment