Skip to content

Commit

Permalink
Merge branch 'ytmdesktop:development' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
BioCla committed Jul 1, 2024
2 parents 067fe00 + de0c4e9 commit e3f3e17
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 24 deletions.
38 changes: 18 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,22 @@ TODO: Write guides for v2. While these may still be helpful they are geared towa
#### Windows
<!--
### UPDATE THESE PLATFORMS ###
- Winget: ```winget install "YouTube Music Desktop App"``` or ```winget install Ytmdesktop.Ytmdesktop```
- Chocolatey: ```choco install ytmdesktop```
-->
- Winget: ```winget install "YouTube Music Desktop App"``` or ```winget install Ytmdesktop.Ytmdesktop```
- Scoop: ```scoop bucket add extras``` then ```scoop install ytmdesktop``` (Community Maintained)
- Binaries: <https://github.com/ytmdesktop/ytmdesktop/releases>

#### Linux
<!--
### UPDATE THESE PLATFORMS ###
- Arch Linux (AUR): <https://aur.archlinux.org/packages/ytmdesktop-git>
- Snap: <https://snapcraft.io/youtube-music-desktop-app>
-->
- Arch Linux (AUR): <https://aur.archlinux.org/packages/ytmdesktop> (Community Maintained)
- Binaries: <https://github.com/ytmdesktop/ytmdesktop/releases>

#### Mac
<!--
### UPDATE THESE PLATFORMS ###
- Brew: ```brew install --cask ytmdesktop-youtube-music```
-->
- Brew: ```brew install --cask ytmdesktop-youtube-music``` (Community Maintained)
- Binaries: <https://github.com/ytmdesktop/ytmdesktop/releases>

# Developing
Expand Down Expand Up @@ -102,35 +100,35 @@ Navigate to [ytmdesktop-locales](https://github.com/ytmdesktop/ytmdesktop-locale
A Thank you to all the contributors throughout the project, without their work this project would have just been a small project and never expanded to where it is now.

[<img alt="adlerluiz" src="https://avatars.githubusercontent.com/u/2112638?v=4&s=240" width="120" height="120">](https://github.com/adlerluiz)
[<img alt="rickpalmeira" src="https://avatars.githubusercontent.com/u/4140033?v=4&s=240" width="120" height="120">](https://github.com/rickpalmeira)
[<img alt="NovusTheory" src="https://avatars.githubusercontent.com/u/3434404?v=4&s=240" width="120" height="120">](https://github.com/NovusTheory)
[<img alt="mingjun97" src="https://avatars.githubusercontent.com/u/15214491?v=4&s=240" width="120" height="120">](https://github.com/mingjun97)
[<img alt="rickpalmeira" src="https://avatars.githubusercontent.com/u/4140033?v=4&s=240" width="120" height="120">](https://github.com/rickpalmeira)
[<img alt="Alipoodle" src="https://avatars.githubusercontent.com/u/17199186?v=4&s=240" width="120" height="120">](https://github.com/Alipoodle)
[<img alt="NovusTheory" src="https://avatars.githubusercontent.com/u/3434404?v=4&s=240" width="120" height="120">](https://github.com/NovusTheory)
[<img alt="flleeppyy" src="https://avatars.githubusercontent.com/u/18307183?v=4&s=240" width="120" height="120">](https://github.com/flleeppyy)
[<img alt="zagoruev" src="https://avatars.githubusercontent.com/u/986243?v=4&s=240" width="120" height="120">](https://github.com/zagoruev)
[<img alt="Venipa" src="https://avatars.githubusercontent.com/u/17952364?v=4&s=240" width="120" height="120">](https://github.com/Venipa)
[<img alt="serzhan-nasredin" src="https://avatars.githubusercontent.com/u/67647968?v=4&s=240" width="120" height="120">](https://github.com/serzhan-nasredin)
[<img alt="serjan-nasredin" src="https://avatars.githubusercontent.com/u/67647968?v=4&s=240" width="120" height="120">](https://github.com/serjan-nasredin)
[<img alt="TotalChris" src="https://avatars.githubusercontent.com/u/41809916?v=4&s=240" width="120" height="120">](https://github.com/TotalChris)
[<img alt="ArnyminerZ" src="https://avatars.githubusercontent.com/u/12086466?v=4&s=240" width="120" height="120">](https://github.com/ArnyminerZ)
[<img alt="TotallyNotInUse" src="https://avatars.githubusercontent.com/u/56458705?v=4&s=240" width="120" height="120">](https://github.com/TotallyNotInUse)
[<img alt="pinkiesky" src="https://avatars.githubusercontent.com/u/7098424?v=4&s=240" width="120" height="120">](https://github.com/pinkiesky)
[<img alt="ddarkr" src="https://avatars.githubusercontent.com/u/6638675?v=4&s=240" width="120" height="120">](https://github.com/ddarkr)
[<img alt="pinkiesky" src="https://avatars.githubusercontent.com/u/7098424?v=4&s=240" width="120" height="120">](https://github.com/pinkiesky)
[<img alt="NNowakowski" src="https://avatars.githubusercontent.com/u/16933892?v=4&s=240" width="120" height="120">](https://github.com/NNowakowski)
[<img alt="dm3ch" src="https://avatars.githubusercontent.com/u/5025313?v=4&s=240" width="120" height="120">](https://github.com/dm3ch)
[<img alt="Vistaus" src="https://avatars.githubusercontent.com/u/1716229?v=4&s=240" width="120" height="120">](https://github.com/Vistaus)
[<img alt="smarquespt" src="https://avatars.githubusercontent.com/u/1302668?v=4&s=240" width="120" height="120">](https://github.com/smarquespt)
[<img alt="peter9811" src="https://avatars.githubusercontent.com/u/22783445?v=4&s=240" width="120" height="120">](https://github.com/peter9811)
[<img alt="KageRyo" src="https://avatars.githubusercontent.com/u/36478298?v=4&s=240" width="120" height="120">](https://github.com/KageRyo)
[<img alt="andrew000" src="https://avatars.githubusercontent.com/u/11490628?v=4&s=240" width="120" height="120">](https://github.com/andrew000)
[<img alt="adiologydev" src="https://avatars.githubusercontent.com/u/9266227?v=4&s=240" width="120" height="120">](https://github.com/adiologydev)
[<img alt="chaoky" src="https://avatars.githubusercontent.com/u/9826702?v=4&s=240" width="120" height="120">](https://github.com/chaoky)
[<img alt="nattadasu" src="https://avatars.githubusercontent.com/u/49780229?v=4&s=240" width="120" height="120">](https://github.com/nattadasu)
[<img alt="Nerogar" src="https://avatars.githubusercontent.com/u/3390934?v=4&s=240" width="120" height="120">](https://github.com/Nerogar)
[<img alt="nils-kt" src="https://avatars.githubusercontent.com/u/34674720?v=4&s=240" width="120" height="120">](https://github.com/nils-kt)
[<img alt="andia89" src="https://avatars.githubusercontent.com/u/6475757?v=4&s=240" width="120" height="120">](https://github.com/andia89)
[<img alt="tbvjaos510" src="https://avatars.githubusercontent.com/u/32216112?v=4&s=240" width="120" height="120">](https://github.com/tbvjaos510)
[<img alt="danparidae" src="https://avatars.githubusercontent.com/u/7272087?v=4&s=240" width="120" height="120">](https://github.com/danparidae)
[<img alt="asuetin" src="https://avatars.githubusercontent.com/u/37500046?v=4&s=240" width="120" height="120">](https://github.com/asuetin)
[<img alt="PHNX-Arcanus" src="https://avatars.githubusercontent.com/u/23439665?v=4&s=240" width="120" height="120">](https://github.com/PHNX-Arcanus)
[<img alt="austonpramodh" src="https://avatars.githubusercontent.com/u/5049050?v=4&s=240" width="120" height="120">](https://github.com/austonpramodh)
[<img alt="tbvjaos510" src="https://avatars.githubusercontent.com/u/32216112?v=4&s=240" width="120" height="120">](https://github.com/tbvjaos510)
[<img alt="andia89" src="https://avatars.githubusercontent.com/u/6475757?v=4&s=240" width="120" height="120">](https://github.com/andia89)
[<img alt="nils-kt" src="https://avatars.githubusercontent.com/u/34674720?v=4&s=240" width="120" height="120">](https://github.com/nils-kt)
[<img alt="Nerogar" src="https://avatars.githubusercontent.com/u/3390934?v=4&s=240" width="120" height="120">](https://github.com/Nerogar)
[<img alt="nattadasu" src="https://avatars.githubusercontent.com/u/49780229?v=4&s=240" width="120" height="120">](https://github.com/nattadasu)
[<img alt="mkotb" src="https://avatars.githubusercontent.com/u/6364146?v=4&s=240" width="120" height="120">](https://github.com/mkotb)
[<img alt="chaoky" src="https://avatars.githubusercontent.com/u/9826702?v=4&s=240" width="120" height="120">](https://github.com/chaoky)
[<img alt="ElectricalBoy" src="https://avatars.githubusercontent.com/u/15651807?v=4&s=240" width="120" height="120">](https://github.com/ElectricalBoy)

[discord-img]: https://img.shields.io/badge/Discord-JOIN-GREEN.svg?style=for-the-badge&logo=discord
[discord-url]: https://discord.gg/88P2n2a
Expand Down
19 changes: 15 additions & 4 deletions scripts/generateContributors.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ import fs from 'fs';

const repoOwner = 'ytmdesktop';
const repoName = 'ytmdesktop';
const apiUrl = `https://api.github.com/repos/${repoOwner}/${repoName}/contributors?per_page=30`;

// We are fetching the first 35 contributors
// But we only display the first 30 contributors in the README
// As we are filtering out the bots
const apiUrl = `https://api.github.com/repos/${repoOwner}/${repoName}/contributors?per_page=35`;

function fetchContributors() {
return new Promise((resolve, reject) => {
const options = {
method: 'GET',
method: "GET",
headers: {
'User-Agent': 'GitHub-Contributors-App' // Add your user agent here
"User-Agent": "GitHub-Contributors-App" // Add your user agent here
}
};

Expand Down Expand Up @@ -40,11 +44,18 @@ function fetchContributors() {

function generateMarkdown(contributors) {
const markdownContent = contributors.map(contributor => {
if (contributor.type === 'Bot') {
return null;
}

return (
`[<img alt="${contributor.login}" src="${contributor.avatar_url}&s=240" width="120" height="120">]`+
`(${contributor.html_url})`
);
}).join('\n');
})
.filter(contributor => contributor !== null)
.slice(0, 30)
.join('\n');

const readmeContent = (
`## Contributors`+
Expand Down

0 comments on commit e3f3e17

Please sign in to comment.