Embodiment
In order to realize not needing downloaded files such as users such as advertisement link, virus documents in the filtering download task list, thereby conserve network resources and user's disk storage resource, and avoid bringing potential safety hazard to user computer, the embodiment of the invention provides a kind of client and method of filtering download task list, it is based on the download protocol of once downloading a plurality of files, as BT (BitTorrent) download protocol.
Below specifically describe the client 1 of filtering download task list of the present invention by two embodiment.
Client implementation example 1, referring to shown in Figure 2, it comprises: acquiring unit 101, taxon 102 and filter element 103.
Acquiring unit 101 wherein is used for obtaining the attribute information of each target downloading file of download task list.It is one of following that the attribute information of each target downloading file that this acquiring unit 101 obtains comprises at least:
Attribute information one: the filename of this target downloading file.
Attribute information two: the size of this target downloading file.
Attribute information three: the type of this target downloading file.
Taxon 102 wherein is used for according to the target downloading file classification of the described attribute information that obtains to this download task list.Concrete mode classification is as follows:
Corresponding above-mentioned attribute information one: taxon 102 judges in the filename that is obtained whether comprise default word, and the user described in this default word does not need downloaded files information, and the file in download that will comprise default word is included into first category.For example comprise default word " freely " in the filename, then this document is likely some advertisement page links, so it is classified as first category.Should can be provided with according to the actual requirements and change by default word.
Corresponding above-mentioned attribute information two: whether taxon 102 judges the file size that is obtained less than preset threshold value, and will be classified as first category less than the target downloading file of pre-set threshold value.The user generally is to download files such as audio frequency and video, application software by download tool, and this class file generally can be too not little, is likely web page interlinkage or trojan horse program less than the file (for example 20KB is following) of preset threshold value, so it is included into first category.
Corresponding above-mentioned attribute information three: taxon 102 judges according to the file suffixes name whether the type of target downloading file is preset kind, this preset kind does not need the downloaded files type for the user, and the target downloading file that will meet preset kind is classified as first category.For example the user generally can not use download tool file in download suffix to be called the webpage of html, htm, url etc., so it can be classified as first category.This preset kind can be provided with and change according to the actual requirements.
Filter element 103 wherein is used for the classification results according to taxon 102, filters the target downloading file that is included in the first category from download task list, the file in download corresponding download task in the cancellation first category.
Client implementation example 2, referring to shown in Figure 3, it comprises: acquiring unit 101, taxon 102, display unit 104, indicating member 105 and filter element 103.
Acquiring unit 101 wherein is used for obtaining the attribute information of each target downloading file of download task list.For example obtain the type of each target downloading file, specifically can judge the type of file according to the file suffixes name.
Taxon 102 wherein is used for according to the target downloading file classification of the described attribute information that obtains to this download task list.For example: some kinds of suffix names of same type file are included into a class, are classified as picture category as file with .jpg .jpeg .gif suffix.
Wherein display unit 104, are used for the class categories that taxon 102 draws is presented to the user.
Wherein indicating member 105, and the classification that is used for selecting with the user is as first category, and indication filter element 103 filters.For example: the user manually selects the picture category file, then indicating member 105 with picture category as first category.Again for example: the user manually selects the non-video class file, then indicating member 105 with the classification except that video class as first category.
Filter element 103 wherein is used for filtering the target downloading file that is included into the first category from download task list, the file in download corresponding download task of cancellation first category.For example: according to the indication of indicating member 105, the downloading task that All Files suffix name in the download task list is belonged to the picture category file is cancelled, to filter the file of picture category.Again for example: according to the indication of indicating member 105, the downloading task that All Files suffix name in the download task list is belonged to the non-video file is cancelled, to filter the non-video file.
The embodiment of above-mentioned two filtering download task list clients also can combine, and promptly elder generation, is rechecked once by the user by client implementation example 2, thereby reaches more excellent filter effect by client automatic fitration by client implementation example 1.
Below specifically describe the method for filtering download task list of the present invention by 2 embodiment.
Method embodiment 1, client automatic fitration referring to shown in Figure 4, comprise following key step:
S101, obtain the attribute information of each target downloading file in the download task list.
It is one of following that the attribute information of each target downloading file that wherein, obtains comprises at least:
Attribute information one: the filename of this target downloading file.
Attribute information two: the size of this target downloading file.
Attribute information three: the type of this target downloading file.
S102, the target downloading file in this download task list is classified according to the described attribute information that obtains.
Attribute information one among the corresponding S101: judge in the filename that is obtained whether comprise default word, this default word is used to describe the user and does not need downloaded files information, and the target downloading file that will comprise default word is classified as first category.For example comprise default word " freely " in the file name, then this document is likely some advertisement page links, so it is included into first category.Should can be provided with according to the actual requirements and change by default word.
Attribute information two among the corresponding S101: whether judge the file size that is obtained less than preset threshold value, and will be classified as first category less than the target downloading file of pre-set threshold value.The user generally is to download files such as audio frequency and video, application software by download tool, and this class file generally can be too not little, is likely web page interlinkage or trojan horse program less than the file (for example 20k is following) of preset threshold value, so it is included into first category.
Attribute information three among the corresponding S101: whether the type of judging target downloading file according to the file suffixes name is preset kind, and this preset kind does not need the downloaded files type for the user, and the target downloading file that will meet preset kind is included into first category.For example the user generally can not use download tool file in download suffix to be called the webpage of html, htm, url etc., so it can be included into first category.This preset kind can be provided with and change according to the actual requirements.
The target downloading file of S103, filtration first category filters the target downloading file that is included in the first category from download task list, the target downloading file corresponding download task in the cancellation first category.
Method embodiment 2, user manually filter, and referring to shown in Figure 5, comprise following key step:
S201, obtain the attribute information of each target downloading file in the download task list.
Attribute information is the type of target downloading file in the present embodiment, specifically can judge the type of file according to the file suffixes name.
S202, the target downloading file in this download task list is classified according to the described attribute information that obtains.
For example: some kinds of suffix names of same type file are included into a class, are classified as picture category as file with the .jpg.jpeg.gif suffix.
S203, the classification that classification is obtained present to the user.
S204, the classification selected with the user are as first category.
For example: the user manually selects the picture category file, then with picture category as first category.
S205, from download task list, filter the target downloading file be included in the first category, the file in download corresponding download task of cancellation first category.
For example: the downloading task that All Files suffix name in the download task list is belonged to the picture category file is cancelled, to filter the file of picture category.
The embodiment of above-mentioned two filtering download task list methods also can combine, and promptly passes through method embodiment 1 earlier by client automatic fitration, is rechecked once by the user by method embodiment 2, thereby reaches more excellent filter effect.
In sum, in the client and method of the filtering download task list that the embodiment of the invention provides, owing to there is the attribute information that obtains each target downloading file in the download task list, according to the described attribute information that obtains the target downloading file in this download task list is classified, and filtration divides to go into this process of target downloading file of first category, do not need downloaded files so can realize the user in the filtering download task list, thereby conserve network resources and user's disk storage resource, and avoid the potential safety hazard brought to user computer.
Referring to shown in Figure 1, be existing download task list schematic diagram; Referring to shown in Figure 6, be the client by the embodiment of the invention and the method download task list schematic diagram after filtering.By contrasting as seen, cancelled the selection of 4 promotional literatures among Fig. 6, being different to the file use that is cancelled selection simultaneously, the mode of select File (being that client is filtered the target downloading file that the back is determined) shows, for example use different colors, or add mode such as underscore, make things convenient for the user to confirm last download task list.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.