RocHack / bb

Command line Blackboard client
MIT License
72 stars 8 forks source link

missing materials not under 'Course Materials' tab #22

Open jeremywrnr opened 9 years ago

jeremywrnr commented 9 years ago

Sometimes professors can rename the 'Course Materials' tab, which causes get_assignments to miss whatever is uploaded in that tab.

AstralSorcerer commented 9 years ago

Is it possible/feasible to determine the correct tab from its content? I think the best way to address this is to have a config file that pairs course names/CRNs to the tab name.

joeljk13 commented 9 years ago

Note that professors don't necessarily put all useful documents/info in one tab. I think it'd be best to be able to access all content from all tabs. We could have a get_tabs function that returns a delimited list of all the tabs (or maybe an array, since we're using bash). Commands like bb_materials could then look for materials in every tab for a given course, so it's guaranteed not to miss anything. If a course only uses "Course Materials", as it seems most courses do, then it just shouldn't find anything in any of the other tabs.

jeremywrnr commented 9 years ago

Another, possibly simpler solution would be to just check against common words, like 'Syllabus', 'Lab', 'Assignments'... etc.

However, I think @joeljk13 's idea to get all tabs and then check them for uploaded files would be best.