Change default local cache level (#5140)

* Change default local cache level

* Update the owner message as well
This commit is contained in:
jack1142
2021-06-17 05:04:31 +02:00
committed by GitHub
parent c3362f6eaa
commit be04ec1c86
3 changed files with 5 additions and 8 deletions

View File

@@ -198,7 +198,7 @@ class AudioAPIInterface:
uri: str,
notifier: Optional[Notifier],
skip_youtube: bool = False,
current_cache_level: CacheLevel = CacheLevel.none(),
current_cache_level: CacheLevel = CacheLevel.all(),
) -> List[str]:
"""Return youtube URLS for the spotify URL provided."""
youtube_urls = []
@@ -718,7 +718,7 @@ class AudioAPIInterface:
self,
ctx: commands.Context,
track_info: str,
current_cache_level: CacheLevel = CacheLevel.none(),
current_cache_level: CacheLevel = CacheLevel.all(),
) -> Optional[str]:
"""Call the Youtube API and returns the youtube URL that the query matched."""
track_url = await self.youtube_api.get_call(track_info)