Skip to content

Instantly share code, notes, and snippets.

View kevinoconnor7's full-sized avatar

Kevin O'Connor kevinoconnor7

View GitHub Profile
diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py
index 0f2c06f40..77ffa7789 100644
--- a/youtube_dl/downloader/hls.py
+++ b/youtube_dl/downloader/hls.py
@@ -138,6 +138,9 @@ class HlsFD(FragmentFD):
else compat_urlparse.urljoin(man_url, line))
if extra_query:
frag_url = update_url_query(frag_url, extra_query)
+ if '_ad/creative/' in frag_url:
+ self.to_screen('[AD!] Found ad url: %s' % frag_url)
@kevinoconnor7
kevinoconnor7 / authelia.sh
Last active December 30, 2025 10:24
Home Assistant Command Line Authentication for Authelia
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
## BEGIN CONFIGURATION SECTION ##
# The domain/path of your authelia service. For example:
# - sso.example.com
# - example.com/auth
# - example.com:8443
Finished executing kotlin compiler using IN_PROCESS strategy
e: org.jetbrains.kotlin.util.FileAnalysisException: Somewhere in file /usr/local/google/home/kevinoconnor/Development/kotlin/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableCollection.kt: java.lang.IllegalStateException: KtSourceElement inside a SourceCodeAnalysisException was matched against the wrong FirFile source. This:
> actual override fun iterator(): Iterator<E>
...is not present in...> /*
> * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
> * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
> */
>