Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ybk5053 committed Dec 16, 2023
1 parent d6133f5 commit 3d268e0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,28 @@

The integration [`Yt_dlp_hass`](https://github.com/ybk5053/yt_dlp_hass) needs to be enabled before using the card.

![image](https://raw.githubusercontent.com/ybk5053/yt_dlp-card/main/img/downloading.jpg)
*Download info*
![image](https://raw.githubusercontent.com/ybk5053/yt_dlp-card/main/img/waiting.jpg)
*Empty Card*

## HACS

- Add Custom Repositories

```text
Repository: https://github.com/ybk5053/yt_dlp-card
Category: Lovelace
```

## Manual Installation

- Download [yt_dlp-card.js](https://github.com/ybk5053/yt_dlp-card/blob/main/dist/yt_dlp-card.js)
- Copy to www/community/yt_dlp-card/
- Copy to www/yt_dlp-card/
- Add the following to your resources

```text
url: /hacsfiles/yt_dlp-card/yt_dlp-card.js
url: /local/yt_dlp-card/yt_dlp-card.js
type: Javascript Module
```

Expand Down
2 changes: 1 addition & 1 deletion dist/yt_dlp-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class YTDLPCard extends LitElement {
}
this._header = config.header === "" ? nothing : config.header;
this._colour = config.colour === "" ? "#005eff" : config.colour;
this._entity = config.entity;
this._entity = config.entity === "" ? "yt_dlp.downloading" : config.entity;
// call set hass() to immediately adjust to a changed entity
// while editing the entity in the card editor
if (this._hass) {
Expand Down

0 comments on commit 3d268e0

Please sign in to comment.