Skip to content

Commit

Permalink
Merge pull request #46 from mbaraa/dev
Browse files Browse the repository at this point in the history
Release v0.0.6
  • Loading branch information
mbaraa authored May 25, 2024
2 parents 4dd1509 + 3bff752 commit 04a029c
Show file tree
Hide file tree
Showing 12 changed files with 648 additions and 620 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,22 @@ IDK, it would be really nice of you to contribute, check the poorly written [CON
- [x] Audio player
- [x] Accounts and Profiles
- [x] Playlists
- [ ] Share playlists
- [x] Share playlists
- [ ] Vote songs in playlists
- [ ] Write a better YouTube scraper (or try to fix the quota thing)
- [x] Songs queue
- [ ] Refactor the code (never gonna happen)

## Technologies used

- **[Go](https://golang.org)**: Main programming language.
- **[JavaScript](https://developer.mozilla.org/en-US/docs/Web/javascript)**: Dynamic client logic.
- **[Python](https://python.org)**: Used for the YouTube download service.
- **[templ](https://templ.guide)**: The better [html/template](https://pkg.go.dev/html/template).
- **[htmx](https://htmx.org)**: The front-end library of peace.
- **[GORM](https://gorm.io)**: The fantastic ORM library for Golang.
- **[MariaDB](https://mariadb.org)**: Relational database.
- **[Python](https://python.org)**: Used for the YouTube download service.
- **[yt-dlp](https://github.com/yt-dlp/yt-dlp)**: YouTube download helper.
- **[pytube](https://github.com/pytube/pytube)**: YouTube download helper.
- **[minify](https://github.com/tdewolff/minify)**: Minify static text files.

## Run locally
Expand Down
8 changes: 6 additions & 2 deletions services/youtube/search/search_scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@ func (y *ScraperSearch) Search(query string) (results []entities.Song, err error
duration[0] = "0" + duration[0]
}
if len(duration) == 3 {
durationNum, err := strconv.Atoi(duration[0])
hoursNum, err := strconv.Atoi(duration[0])
if err != nil {
continue
}
if durationNum > 2 {
minsNum, err := strconv.Atoi(duration[1])
if err != nil {
continue
}
if hoursNum >= 1 && minsNum > 30 {
continue
}
}
Expand Down
3 changes: 3 additions & 0 deletions static/icons/add-to-queue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 04a029c

Please sign in to comment.