如何在c#中将mp3文件与专辑分组 [英] how to group the mp3 files with album in c#

查看:63
本文介绍了如何在c#中将mp3文件与专辑分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< hello mode =hold>

i正在做一个媒体播放器项目,我需要一些帮助



i将所有* .mp3文件添加到列表框中,现在我想根据专辑名称分开文件..

i知道如何获得专辑名称

<hello mode="hold">
i am doing a mediaplayer project and in that i need some help

i added all the *.mp3 files to a list box and now i want to separate the files according to the album names..
i know how to gain album name

 string songTitle = tagFile.Tag.Title;
string artist = tagFile.Tag.AlbumArtists.FirstOrDefault();
 string albumTitle = tagFile.Tag.Album;
 uint year = tagFile.Tag.Year;
 string genre = tagFile.Tag.Genres.FirstOrDefault();



但是如何按同名对它们进行分组

如果可能的话,如何获取文件的图像也是..



我们必须使用一些搜索方法吗??



请帮我解决这个问题..


but how to group them by same name
and if possible how to get the image of the file also..

do we have to use some search method for this..?

please help me to solve this..

推荐答案

可能最简单的方法是创建一个包含文件所有信息的数据库,包括每个文件的路径。然后,您可以使用简单的SQL命令按专辑,艺术品,类型等选择不同的歌曲,歌曲组。您可以从提供查找工具的各种互联网站点找到图像 - Google应该为您找到它们。
Probably the easiest way, would be to create a database that holds all the information on the files, including the path to each file. You can then use simple SQL commands to select different songs, groups of songs by album, by artits, by type etc. You can find the images from various internet sites that provide lookup facilities - Google should locate them for you.


这篇关于如何在c#中将mp3文件与专辑分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆