82 node = BookmarkNode(BookmarkNode.Folder, folders[-1]) |
82 node = BookmarkNode(BookmarkNode.Folder, folders[-1]) |
83 node.title = Utilities.html_udecode(name) |
83 node.title = Utilities.html_udecode(name) |
84 node.expanded = self.__foldedRx.search(arguments) is None |
84 node.expanded = self.__foldedRx.search(arguments) is None |
85 addedMatch = self.__addedRx.search(arguments) |
85 addedMatch = self.__addedRx.search(arguments) |
86 if addedMatch is not None: |
86 if addedMatch is not None: |
87 node.added = QDateTime.fromTime_t( |
87 node.added = QDateTime.fromSecsSinceEpoch( |
88 int(addedMatch.group(1))) |
88 int(addedMatch.group(1))) |
89 folders.append(node) |
89 folders.append(node) |
90 lastNode = node |
90 lastNode = node |
91 |
91 |
92 elif match.re is self.__endFolderRx: |
92 elif match.re is self.__endFolderRx: |
102 match1 = self.__urlRx.search(arguments) |
102 match1 = self.__urlRx.search(arguments) |
103 if match1 is not None: |
103 if match1 is not None: |
104 node.url = match1.group(1) |
104 node.url = match1.group(1) |
105 match1 = self.__addedRx.search(arguments) |
105 match1 = self.__addedRx.search(arguments) |
106 if match1 is not None: |
106 if match1 is not None: |
107 node.added = QDateTime.fromTime_t( |
107 node.added = QDateTime.fromSecsSinceEpoch( |
108 int(match1.group(1))) |
108 int(match1.group(1))) |
109 match1 = self.__modifiedRx.search(arguments) |
109 match1 = self.__modifiedRx.search(arguments) |
110 if match1 is not None: |
110 if match1 is not None: |
111 node.modified = QDateTime.fromTime_t( |
111 node.modified = QDateTime.fromSecsSinceEpoch( |
112 int(match1.group(1))) |
112 int(match1.group(1))) |
113 match1 = self.__visitedRx.search(arguments) |
113 match1 = self.__visitedRx.search(arguments) |
114 if match1 is not None: |
114 if match1 is not None: |
115 node.visited = QDateTime.fromTime_t( |
115 node.visited = QDateTime.fromSecsSinceEpoch( |
116 int(match1.group(1))) |
116 int(match1.group(1))) |
117 lastNode = node |
117 lastNode = node |
118 |
118 |
119 elif match.re is self.__descRx: |
119 elif match.re is self.__descRx: |
120 # description |
120 # description |