New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for SiCKRAGETV/sickrage-issues#2578: Add a "Size" column on shows list #2356
Conversation
Just noticed that the commit message is wrong. I will fix it later. |
The load times seem okay, just tried this on my install with about 100 shows totalling 4TB using a SMB mount and it loaded maybe 300ms slower. |
Good to know. The overhead will be gone once the total size is saved in the DB. |
Since we've removed about 500ms this week, I don't think that's too bad and you're right the db will help a LOT. |
Fix size sorting and lets merge to make some tests |
@MGaetan89 Did you want to work on the sorting for this or should I do it? After looking through |
You also need to add |
I can do it. I will work on it after work ;) |
Commit message is fixed, and the cell is centered. I'm looking at the sort issue now. |
The sort should be fix. So you can merge if you want to try it. |
Active column swapped with size |
Yes, because the "Size" column is before the "Active" column |
and still not working the sorting. related? |
O.o I don't have that issue on my side. I tried both themes ( |
Will try delete cache |
Deleted all /cache except image. @miigotu any idea? |
Also deleted browser cache |
Same for me (about browser cache). |
Latest chrome. Will try with windows when I get home |
No one has some videos on fat32 partition to test this with? |
I see two js bugs xD. |
@MGaetan89 if you're still looking for a cleaner way of doing 3d2f382 I'd suggest you look at the tablesorter and change where it's getting the text from so instead of something like this |
I'm just taking a guess here but @fernandog's issue may be from only selecting certain columns, I haven't tried it but that's the only thing I can think of that may be causing it. |
% except sickbeard.exceptions.ShowDirNotFoundException: | ||
<% show_size = sickbeard.helpers.get_size(curShow._location) %> | ||
% endtry | ||
|
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@OmgImAlexis I did it in #2368 ;) |
@@ -222,7 +224,7 @@ $(document).ready(function(){ | |||
4: { sorter: 'quality' }, | |||
5: { sorter: 'eps' }, | |||
% if sickbeard.FILTER_ROW: | |||
6: { filter : 'parsed' } | |||
7: { filter : 'parsed' } | |||
% endif | |||
}, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I updated the default column sort index. @fernandog can you try again to see if it works for you now? @miigotu can you detail the two JS bugs you talked about in #2356 (comment)? |
@MGaetan89 since I said I was going to redo a lot of the js, what are your thoughts on converting this over to using the data element for sorting? Obviously I won't change anything now but I think it'd be a better option than using this method of trying to select the correct piece of text, etc. |
@MGaetan89 I was referring to the item index and the sortlist item. |
It's a good idea. And the sort options are duplicated (one for the show table, one for the anime table). So they could be extracted in a common variable to prevent issues when a change is made. @miigotu Ok. I thought there were something else. |
working here! thanks! |
@fernandog Thanks for the feedback. I will address @miigotu comment and then it should good to merge. |
is it possible to check if tv-show folder is fat32, then don't calculate it ? |
Yes, it is. https://github.com/giampaolo/psutil to detect the file system type. -----Original Message----- is it possible to check if tv-show folder is fat32, then don't calculate it ? |
@WebSpider psutil is not an option, as it requires c extensions. |
Maybe the easiest solution would be to add an option to enable/disable this column? Disabled by default, user would have to enable it if they want to display it. |
what about this: |
@fernandog that SO answer is for our hard link check, and it is not a good solution anyways for even that as it does more processing than necessary to determine if two paths are on that same partition. @MGaetan89 it just needs tested on fat32, because I'm not sure if it was getting file size, or determining free space on fat32 that takes a hella amount of time. If it is determining free space, then the slow one would be on the status page. |
I guess I can setup a disk with fat32 and some shows, but I can do that until next week-end (11/12th September). |
Conflicts now ^ |
Updated :) |
Im just gonna merge this, and if someone's install barfs Im sure we will know pretty quick. |
Fix for SiCKRAGETV/sickrage-issues#2578: Add a "Size" column on shows list
It needs to be tested for potential performance issue before being included in
develop
/master
.I only have 2 shows with files in my dev environment, so I am not sure about the result.