https://github.com/andyklimczak/no-embed-jvm
https://github.com/andyklimczak/no-embed-jvm
jvm kotlin
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andyklimczak/no-embed-jvm
- Owner: andyklimczak
- License: mit
- Created: 2017-09-02T23:34:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T18:22:06.000Z (7 months ago)
- Last Synced: 2025-02-09T02:22:15.042Z (4 months ago)
- Topics: jvm, kotlin
- Language: Kotlin
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## No Embed Wrapper
Simple wrapper of [noEmbed](https://noembed.com/) for the JVM written in Kotlin
```kotlin
val exampleURL: String = "https://www.youtube.com/watch?v=d9IxdwEFk1c"
if (noEmbed.containsNoEmbedUrl(url)) {
val testNoEmbed: NoEmbed = noEmbed.get(exampleURL)
println(testNoEmbed.providerName) // YouTube
}val testNoEmbed = noEmbed.get("https://bad_url.com") // `NoEmbedException`
```### Install
```xml
jitpack.io
https://jitpack.io
```
```xml
com.github.andyklimczak
No-Embed-JVM
-SNAPSHOT
```