Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrave-dev committed Oct 8, 2023
1 parent 972b686 commit 44cb21e
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 16 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,33 @@ A simple music app using YouTube Music for backend
- Play music from YouTube Music or YouTube free without ads in the background
- Browsing Home, Charts, Moods & Genre with YouTube Music data with high speed
- Search everything on YouTube
- Analyze your playing data and create custom playlists ...
- Analyze your playing data, create custom playlists and sync with YouTube Music ...
- Caching and can save data for offline playback
- Synced lyrics (log in to Spotify to get lyrics)
- Sleep Timer
- Synced lyrics from Musixmatch
- Support SponsorBlock
- Google Login
- And many more ...
- Sleep Timer
- And many more
## Screenshot
<p float="left">
<img src="https://github.com/maxrave-dev/SimpMusic/blob/main/asset/screenshot/miniplayer_top.jpg" width="200" />
<img src="https://github.com/maxrave-dev/SimpMusic/blob/main/asset/screenshot/miniplayer_bottom.jpg" width="200" />
<img src="https://github.com/maxrave-dev/SimpMusic/blob/main/asset/screenshot/home.jpg" width="200" />
<img src="https://github.com/maxrave-dev/SimpMusic/blob/main/asset/screenshot/new_home_ui.jpg" width="200" />
</p>
<p float="left">
<img src="https://github.com/maxrave-dev/SimpMusic/blob/main/asset/screenshot/moodmoment.jpg" width="200" />
<img src="https://github.com/maxrave-dev/SimpMusic/blob/main/asset/screenshot/chart.jpg" width="200" />
<img src="https://github.com/maxrave-dev/SimpMusic/blob/main/asset/screenshot/artist_top.jpg" width="200" />
</p>
<p float="left">
<img src="https://github.com/maxrave-dev/SimpMusic/blob/main/asset/screenshot/search.jpg" width="200" />
<img src="https://github.com/maxrave-dev/SimpMusic/blob/main/asset/screenshot/radio.jpg" width="200" />
<img src="https://github.com/maxrave-dev/SimpMusic/blob/main/asset/screenshot/search_suggest.jpg" width="200" />
<img src="https://github.com/maxrave-dev/SimpMusic/blob/main/asset/screenshot/search_result.jpg" width="200" />
</p>

More [screenshot](https://photos.app.goo.gl/AbieoXG5ctDrpwzp7) here.

## Data
- This app using public api from YouTube Music with some tricks to get data from YouTube Music.
- This app using hidden API from YouTube Music with some tricks to get data from YouTube Music.
- Thanks for [InnerTune](https://github.com/z-huang/InnerTune/) for the idea to get data from YouTube Music. This repo is my inspiration to create this app.
- My app is using [@SponsorBlock](https://sponsor.ajay.app/) to skip sponsor in YouTube videos. Thanks for this great service.
## Translation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ class SimpleMediaServiceHandler @Inject constructor(
player.removeMediaItem(position)
}

fun addMediaItem(mediaItem: MediaItem) {
fun addMediaItem(mediaItem: MediaItem, playWhenReady: Boolean = true) {
player.clearMediaItems()
player.setMediaItem(mediaItem)
player.prepare()
player.playWhenReady = true
player.playWhenReady = playWhenReady
}

fun addMediaItemNotSet(mediaItem: MediaItem) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ class SettingsFragment : Fragment() {
}
else {
Toast.makeText(requireContext(), getString(R.string.no_update), Toast.LENGTH_SHORT).show()
viewModel.getLastCheckForUpdate()
viewModel.lastCheckForUpdate.observe(viewLifecycleOwner) {
binding.tvCheckForUpdate.text = getString(R.string.last_checked_at, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")
.withZone(ZoneId.systemDefault())
.format(Instant.ofEpochMilli(it.toLong())))
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ class PlaylistFragment: Fragment() {
playlistItemAdapter = PlaylistItemAdapter(arrayListOf())
binding.rvListSong.apply {
adapter = playlistItemAdapter
layoutManager = LinearLayoutManager(requireContext()).also {
it.initialPrefetchItemCount = 20
}
layoutManager = LinearLayoutManager(requireContext(), LinearLayoutManager.VERTICAL, false)
setHasFixedSize(false)
isNestedScrollingEnabled = false
}
var id = requireArguments().getString("id")
val downloaded = arguments?.getInt("downloaded")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ class SharedViewModel @Inject constructor(private var dataStoreManager: DataStor
.setAlbumTitle(track.album?.name)
.build()
)
.build()
.build(),
type != RECOVER_TRACK_QUEUE
)
_nowPlayingMediaItem.value = getCurrentMediaItem()
Log.d(
Expand Down Expand Up @@ -582,7 +583,8 @@ class SharedViewModel @Inject constructor(private var dataStoreManager: DataStor
.setAlbumTitle(track.album?.name)
.build()
)
.build()
.build(),
type != RECOVER_TRACK_QUEUE
)
_nowPlayingMediaItem.value = getCurrentMediaItem()
Log.d(
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_playlist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/rvListSong"
android:overScrollMode="never"
tools:listitem="@layout/item_popular_song"
android:layout_marginStart="10sp"
android:layout_marginEnd="10sp">
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-vi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
<string name="save_shuffle_and_repeat_mode">Lưu chế độ trộn và phát lại</string>
<string name="skip_silent">Bỏ qua im lặng</string>
<string name="skip_no_music_part">Bỏ qua phần không có nhạc</string>
<string name="time_out_check_internet_connection_or_change_piped_instance_in_settings">Quá thời gian, kiểm qua kết nối internet</string>
<string name="time_out_check_internet_connection_or_change_piped_instance_in_settings">Quá thời gian, kiểm tra kết nối internet</string>
<string name="save_last_played">Lưu phiên phát lại cuối cùng</string>
<string name="save_last_played_track_and_queue">Lưu bài hát đang phát và danh sách chờ cuối cùng</string>
<string name="update_available">Phiên bản mới có sẵn</string>
Expand Down
Binary file modified asset/screenshot/artist_top.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added asset/screenshot/new_home_ui.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added asset/screenshot/radio.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified asset/screenshot/search_suggest.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added asset/screenshot/sync_youtube.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fastlane/metadata/android/en-US/images/phoneScreenshots/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fastlane/metadata/android/en-US/images/phoneScreenshots/6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fastlane/metadata/android/en-US/images/phoneScreenshots/8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fastlane/metadata/android/vi-VN/images/phoneScreenshots/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fastlane/metadata/android/vi-VN/images/phoneScreenshots/6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fastlane/metadata/android/vi-VN/images/phoneScreenshots/8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 44cb21e

Please sign in to comment.